[R] Beta Conjugate Prior for Random intercept model -WInBUGS

2008-12-16 Thread Anamika Chaudhuri
I have been using the following random intercept model with non-informative prior: model { for (i in 1:n.samples) { vomit[i] ~ dbern(p[i]) logit(p[i]) <- beta0 + alpha[siteid[i]] } for (j in 1:n.sites) { alpha[j]~dnorm(0,tau) } beta0 ~ dnorm(0.0,1.0E-6) tau ~ dgamma(0.01,0.01) } list(n.samples=3780

[R] Reading txt file in R

2008-12-07 Thread Anamika Chaudhuri
Hi:   I am using the following code to read a data set in txt in R and using the follwoing model. But it seems to give me an error ' expected variable name error pos 134022'. Any help is greatly appreciated.   Code: anal.data <- read.table("nausea.txt", header=T, sep="\t") list(names(anal

Re: [R] Reading txt file in R

2008-12-07 Thread Anamika Chaudhuri
nt? How do you intend to read them in and use them? On Sat, Dec 6, 2008 at 10:42 PM, Anamika Chaudhuri <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi: > > I am using the following code to read a data set in txt in R and using the follwoing model. But it seem

Re: [R] Reading txt file in R

2008-12-07 Thread Anamika Chaudhuri
 1 1 1 1 0 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1   -Anamika --- On Sun, 12/7/08, jim holtman <[EMAIL PROTECTED]> wrote: From: jim holtman <[EMAIL PROTECTED]> Subject: Re: [R] Reading txt file in R To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Sunday, December 7, 2008, 10:27 AM In your sa

[R] Reading txt file in R to run Random Intercept Model

2008-12-07 Thread Anamika Chaudhuri
I am using a random intercept model with SITEID as random and NAUSEA as outcome. Thanks. Anamika I tried using a dataset without missing values and changed my model statement accordingly but still get the same error. Follwoing in an excerpt. > anal.data <- read.table("nausea.txt", header=T, sep=

[R] expected variable name error pos 98349 WInBUGS in R

2008-12-08 Thread Anamika Chaudhuri
> I am using a random intercept model with SITEID as random and NAUSEA as > outcome. > > I tried using a dataset without missing values and changed my model > statement accordingly but still get the same error. Follwoing in an excerpt. > > anal.data <- read.table("nausea.txt", header=T, sep="\t") >

[R] error from running WinBUGS in R

2008-12-08 Thread Anamika Chaudhuri
Has anyone ever seen an error like this from running WinBUGS in R '> modelCompile(numChains=2) # compile model with 1 chain error for node p[3421] of type GraphLogit.Node node vetor contains undefined elements [[alternative HTML version deleted]] __

Re: [R] expected variable name error pos 98349 WInBUGS in R

2008-12-09 Thread Anamika Chaudhuri
the > error comes from the BUGS interpreter. Hence wrong mailing list. > > Best wishes, > Uwe Ligges > > > > > Anamika Chaudhuri wrote: > >> I am using a random intercept model with SITEID as random and NAUSEA as >>> outcome. >>> >>&