search for: datasub

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

Did you mean: datasu
2011 Dec 07
1
Help! I couldn't put multiple qplot on the same page...
Hi all, I am stuck at ploting multiple graphs on one page. I don't why it doesn't work. All the 6 plots are either exactly the same, or they simply don't plot at all. I made sure that in each iteration the "datasub" and "factorsub" are different ... Could you please help me? Thanks a lot! I did my homework and followed the following advice: http://stackoverflow.com/questions/1249548/side-by-side-plots-with-ggplot2-in-r my.multiplot <- function(..., plotlist=NULL, cols) { require(gri...
2007 May 23
0
Changing sequential regression code to call systemfit
I use code ( actually its code from vars package and its directly below ) to do a sequence of lm calls and the data I use from the matrix depends on restrictions. for(i in 1:K){ datares <- datasub[, which(x$restrictions[i, ] == 1),drop=FALSE] y <- yendog[, i] lmres <- lm(y ~ -1 + ., data=datares) # x$varresult[[i]] <- lmres # x$resid[, i] <- resid(x$varresult[[i]]) } I would like to modify the code to make one call to systemfit because I really should be...