search for: schlid

Displaying 3 results from an estimated 3 matches for "schlid".

Did you mean: schid
2007 Aug 07
1
lmer() : crossed-random-effects specification
...etween schools over time. I'm interested in the fixed effects of "SES", "age" and their interaction on "read" (reading achievement) while accounting for the sample design. Based on a previous post, I'm specifying my model as: fm1 <- lmer2(read ~ SES*age +(1| schlid:idl) +(1| schlid), hamburg, control=list(gradient = FALSE, niterEM = 0)) where my data is "hamburg" and "idl" and "schlid" are the student and school ids, respectively. (1) Is this the specification I want to estimate to obtain those effects while accounting for...? I...
2011 Aug 16
2
Assignment working differently inside ifelse()
...matrix. In some cases, there are no rows in the data frame meeting the selection criteria. For those rows I want to put a row of 0's in the matrix. Here's my clumsy code: tab1.m1 <- matrix(0, nrow=2, ncol=4) tab1.m1[1,] <- ifelse(length(as.matrix(tab1[tab1$comp==the.comp & tab1$schlid==the.schl & tab1$ext.obs==0, 4:7])) > 0, as.matrix(subset(tab1, tab1$comp==the.comp & tab1$schlid==the.schl & tab1$ext.obs==0)[4:7]), 0) The row of data I want to put in the matrix is: tab1[tab1$comp==the.comp & tab1$schlid==...
2007 Aug 07
0
lmer() - crossed random effects specification
...tween schools over time. I'm interested in the fixed effects of "SES", "age" and their interaction on "read" (reading achievement) while accounting for the sample design. Based on a previous post, I'm specifying my model as: fm1 <- lmer2(read ~ SES*age +(1| schlid:idl) +(1| schlid), hamburg, control=list(gradient = FALSE, niterEM = 0)) where my data is "hamburg" and "idl" and "schlid" are the student and school ids, respectively. (1) Is this the specification I want to estimate to obtain those effects while accounting for...?...