[R] Two questions about the cloud function in the lattice package

2009-07-03 Thread Martin Eklund
[1] rgl_0.84 lme4_0.999375-28 Matrix_0.999375-27 ROCR_1.0-2 [5] gplots_2.7.1 caTools_1.9bitops_1.0-4.1 gdata_2.4.2 [9] gtools_2.6.1 rjags_1.0.3-8 coda_0.13-4 lattice_0.17-25 [13] penalized_0.9-23 survival_2.35-4 loaded via a namespace (and not at

[R] optimizing lm with multiple very similar RHSs

2010-09-24 Thread Martin Eklund
Dear list, I would like to do something like: # Simulate some example data tmp <- matrix(rnorm(50), ncol=5) colnames(tmp) <- c("y","x1","x2", "x3", "x4", "x5") # Fit a linear model with random noise added to x5 n times n <- 100 replicate(n, lm(y ~ x1+x2+x3+x4+I(x5+rnorm(nrow(tmp))), data=as.data

[R] singular.ok in lm

2008-01-24 Thread Martin Eklund
way? Thank you! Best regards, Martin. ======== Martin Eklund PhD Student Department of Pharmaceutical Biosciences Uppsala University, Sweden Ph: +46-18-4714281 [[alternative HTML