search for: matdim

Displaying 2 results from an estimated 2 matches for "matdim".

2000 Nov 06
5
Aggregate
Hello to all, I recently downloaded R to my PC and am enjoying getting acquainted with it. Thank you to everyone involved in the R-project! I am interested in doing a log-linear analysis with R on a data set with dichotomous variables. There are 11 variables (columns) and around 1000 subjects (rows). How do I aggregate my data, i.e. how do I make a new dataset that includes the variable giving
2007 Jan 26
0
R crash with modified lmer code
...: library(lme4) source("M:/Rcode/lmer2.R") ##(Simply sourcing the modified lmer1 code below) set.seed(1) dat <- data.frame(Y = rnorm(400), X1 = rnorm(400), X2 = rnorm(400), F1 = as.factor(sample(1:4, 400, replace = T))) forSm <- Matrix(c(runif(1200)), ncol = 3, sparse = T) matDim <- dim(forSm) smoother <- as.factor(sample(1:4, matDim[1], replace = T)) test <- lmer1 (Y ~ X1 + X2 + (1|F1) + (1|smoother), data = dat, rand_mat = forSm) the sessionInfo (called after sourcing the code but before the crash) is: R version 2.4.1 (2006-12-18) i386-pc-mingw32 locale: LC...