search for: dataf1

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

Did you mean: data1
2011 Feb 25
1
help please ..simple question regarding output the p-value inside a function and lm
...et it out. Sorry, I need your help. Here my data (just created to show the example): # generating a dataset just to show how my dataset look like, here I have x variables # x1 .........to X1000 plus ind and y ind <- c(1:100) y <- rnorm(100, 10,2) set.seed(201) P <- vector() dataf1 <- as.data.frame(matrix(rep(NA, 100000), nrow=100)) dataf <- data.frame (dataf1, ind,y) names(dataf) <- (c(paste("x",1:1000, sep=""),"ind", "y")) for(i in 1:1000) { dataf[,i] <- rnorm(100) } # my intension was to fit a model that would fi...