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
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
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
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
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=
> 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")
>
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]]
__
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.
>>>
>>&
8 matches
Mail list logo