[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
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
way?
Thank you!
Best regards,
Martin.
========
Martin Eklund
PhD Student
Department of Pharmaceutical Biosciences
Uppsala University, Sweden
Ph: +46-18-4714281
[[alternative HTML
3 matches
Mail list logo