>>> "Anamika Chaudhuri" <[EMAIL PROTECTED]> 08/12/2008 03:46:34 >>>
>I am using a random intercept model with SITEID as random and NAUSEA
as
>outcome.
Hardly surprising ;-)
More seriously, your data set fragment had only one level for SITEID. I
assume there were actually more levels?
S
***
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=
rror pos 98349
MODEL
model
{
for (i in 1:n.samples)
{NAUSEA[i] ~ dbin(p[i],1)
logit(p[i]) <- alpha[SITEID[i]]}
#for(k in 1:n.params)
#{b[k]~ dnorm(0.0,tau)}
for (j in 1:n.sites)
{alpha[j]~dnorm(0.0,1.0E-10)}
tau ~ dgamma(0.001,0.001)
}
Dataset:
SITEID NAUSEA
1 0
1 1
1 1
1 0
1 1
1 1
1 0
1 1
1
e:
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 sample data, the first 9 lines do not have the same number of
elements as the rest. What are they supposed to represe
In your sample data, the first 9 lines do not have the same number of
elements as the rest. What are they supposed to represent? 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
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
6 matches
Mail list logo