JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for BUGS Archives


BUGS Archives

BUGS Archives


BUGS@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

BUGS Home

BUGS Home

BUGS  1998

BUGS 1998

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

FW: Problem with saving state of the sampler and using as inits: "ITS THE COMMAS"!!!

From:

Brian Griner <[log in to unmask]>

Reply-To:

Brian Griner <[log in to unmask]>

Date:

Wed, 18 Nov 1998 21:40:11 -0500

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (230 lines) , Brian.odc (230 lines)

Dear list members,

	One problem solved thanks again to Miike Thompson.  As you'll
see below, Mike suggested that I insert commas between the variables in
the inits file and guess what (IT WORKS! YIPPEE!!!!).  As for monitoring
every nth draw, that doesn't appear to be implemented in WinBUGS yet
although there seems to be a very good reason for doing so according to
Kate Cowles:

Brian-
If your sampler has high autocorrelations, then just saving the last
500-1000 iterations is not a good solution because they may not cover
the whole parameter space.  I'm a BUGS, rather than a WinBUGS, user so
far, so I don't know how to save only every nth iter in WinBUGS;
however, that is definitely a much better option than using a small
number of consecutive iterations, even after a very long burn-in.
Kate Cowles
U of Iowa

My other problem with the categorical variables summing to 1 is still
outstanding.  Mike tried to compile my model with my data and failed
(but was successful on a smaller dataset).  I think this is a question
for THE BUGS TEAM!

Overall, the main problem I am having using WinBUGS is that it is very
resource intensive in terms of memory and demands on the operating
system.  I'm not a software engineer but I don't think the program is
making enough calls to the operating system for effective multi-tasking
(WinBUGS locks up my machine while updating, compiling, etc.. to the
point where I can minimize the windows to do something else). 

I would like to comment that, regardless of the problems I am
encountering, I am very impressed with the WinBUGS interface and all the
readily available diagnostics!  My compliments to THE BUGS TEAM for
putting this software together and making it available to the public.

	Regards, Brian  

________________________________
Brian P. Griner, Ph.D.
Manager, Telemarketing Modeling
ORC International
PO Box 183
Princeton, NJ 08542
Phone: 908.281.3566
Fax: 	908.281.5103
Email: 	[log in to unmask]
________________________________


-----Original Message-----
From:	Michael Thompson [mailto:[log in to unmask]]
<mailto:[mailto:[log in to unmask]]> 
Sent:	Wednesday, November 18, 1998 8:28 PM
To:	Brian Griner
Subject:	Re: Problem with saving state of the sampler and using
as inits

 <<Brian.odc>> Dear Brian,

Thank you for the information on the inverse(.) function.
I would have never guessed the correct syntax.
I looked at your latest model and I can't figure out the problem.  I've
attached a version of what I sent you that works with the small data
lists I included, but it doesn't compile with your large data.  I don't
know what's wrong.  It may be a bug in WinBUGS or it may be model
misspecification or it may be something peculiar to the values specified
in your data.  Beats me.
With your init problem and variable 'd', have you tried inserting commas
between the structures for each variable and the name of the succeeding
variable?  I haven't checked that, but it might work.
Your offer to provide me with a SAS model is appreciated, but I'll have
to pass.  Thanks anyways.
Regards, -Mike -----Original Message-----
From:	Brian Griner <[log in to unmask]
<mailto:[log in to unmask]> >
To:	'BUGS Discussion List' <[log in to unmask]
<mailto:[log in to unmask]> >
Date:	Thursday, November 19, 1998 6:45 AM
Subject:	Problem with saving state of the sampler and using as
inits


	>Dear list members,
	>
	> I have encountered another problem.  I burned in my model for
	>10000 iterations and saved the state of the sampler.  I then
saved the
	>file to be used later as init.  When I tried to use that file
as initial
	>values I got an error on the d variable saying that it was
undefined???
	>
	> I am posting the code and parts of the inits file in hope that
	>someone can help me figure out what the problem is.
	>
	> Thanks, Brian
	>________________________________
	>Brian P. Griner, Ph.D.
	>Manager, Telemarketing Modeling
	>ORC International
	>PO Box 183
	>Princeton, NJ 08542
	>Phone: 908.281.3566
	>Fax: 908.281.5103
	>Email: [log in to unmask]
<mailto:[log in to unmask]> 
	>________________________________
	>
	>
	># Prime Option Conjoint Analysis for Tier 2 Risk Group
	>
	># Random Coefficients GLM
	>
	> {
	>
	> for(p in 1:11629) {
	>
	> RATE[p] ~ dnorm(mu[p],tau);
	>
	>#  normal model with identity link
	>
	> mu[p] <- beta[SUBJECT[p],1] +
	>inprod(beta[SUBJECT[p],2:14],X[p,]) }
	>
	># Random Coefficients Distributed Multivariate Normal
	>
	>   for(i in 1:401) { beta[i,1:14] ~ dmnorm(mu.beta[],d[,]) }
	>
	># priors
	>
	># alpha~dnorm(0,0.1);
	>tau~dgamma(2,0.1);
	>sigma2.error<-1/tau;
	>
	># random coefficients
	>  for(k in 1:14) { mu.beta[k]~dnorm(0,.01) }
	>
	>#  precision of random coefficients
	>  d[1:14,1:14]~dwish(R[1:14,1:14],14);
	>
	>  for (i in 1:14) {  for (j in 1:14) { sigma2.beta[i,j] <-
	>inverse(d[1:14,1:14],i,j) } }
	>
	>  for(i in 1:14) { for(j in 1:14) { R[i,j] <- equals(i,j) } }
	>
	>}
	>
	>INITS
	>
	>list(
	>beta = structure(.Data = c(
	
>3.282412588667338,0.7653116614984412,-0.6906804253640223,-1.34153435121
0
	>83,-2.112894924887341,
	
>0.8947587460790352,0.9058212047781707,0.4360582023989157,0.127405600245
2
	>24,0.012869414820995,
	>
	>...
	>
	>
	
>-0.1407106276842542,0.2349147166280131,0.3298823778435878,-0.0586900622
4
	>45765,-0.4458489635741271,
	
>1.884119891594754,-0.004886750337744855,-0.9303979087012357,-1.53317260
1
	>025971,-2.030882364102262,
	
>-0.2794327945319873,0.5958414062346165,0.2038176111625159,0.31612398387
9
	>9775,-0.1304391681751179,
	
>0.2957778422655853,0.6222548743066683,0.09803902887743932,-0.0340345355
8
	>856817),
	>.Dim = c(401,14))
	>d = structure(.Data = c(  THE PROBLEM IS HERE!!! IT SAYS
"UNDEFINED
	>VARIABLE"???
	
>4.22764833208275,1.240162001239989,-3.153540656687308,1.27924632537375,
3
	>.546791846759434,
	
>3.313650026072872,0.5024764674462132,-2.00051750617372,1.13623621926096
,
	>-0.03702284031076551,
	
>1.149914801699361,1.464918876459561,1.26849351989115,2.295094952160221,
1
	>.240162001239989,
	
>11.36360744280755,-12.88687417131261,-1.547403952582656,6.7691534578426
8
	>1,0.5131004519136159,
	>
	>...
	>
	
>2.19881004099468,-2.429780251699416,3.002398802178393,-0.21933521995352
4
	>1,-6.57135526116418,
	>7.321966874461973),
	>.Dim = c(14,14))
	>mu.beta = c(
	
>1.857866959860349,0.3281089176872713,-0.0148070665621257,-0.26232144917
0
	>7054,-0.4863865667861188,
	
>-0.0850994402168696,0.3618201923427917,0.1422602237089615,-0.0288159974
9
	>008245,-0.0274879895572637,
	
>0.2839049469229803,0.297947081691159,-0.07421523878963014,-0.4382493687
5
	>07391)
	>tau = 2.043489224369806)
	>
	>




Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

March 2024
January 2024
December 2023
August 2023
March 2023
December 2022
November 2022
August 2022
May 2022
March 2022
February 2022
December 2021
November 2021
October 2021
September 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager