search for: etrue

Displaying 1 result from an estimated 1 matches for "etrue".

Did you mean: true
2010 Mar 22
0
using lmer weights argument to represent heteroskedasticity
...*npergroup set.seed(5046) d <- data.frame(unitid = 1:n, groupid = rep(1:ngroup, each=npergroup), verror = sample(c(0.5, 1, 2, 4), size=n, replace=T), x = 0.1*rnorm(n)) groupeffx <- data.frame(groupid = 1:ngroup, theta = rnorm(ngroup, sd = 0.25)) d <- merge(d, groupeffx) d$etrue <- rnorm(n, sd = sqrt(d$verror)) d$y <- 5 + d$x + d$theta + d$etrue d$verrorf <- factor(paste("v",d$verror,sep="")) print(tapply(d$etrue, d$verrorf, var)) ## function to collect pieces from lme() output sumLME <- function(o){ tab <- summary(o)$tTable...