Displaying 1 result from an estimated 1 matches for "datasetgrp".
2008 Feb 25
1
Problems with augPlot and for loops
...to plot
its prediction of the dependent variable values.
This is the code I'm using to plot the figures (I removed the commands I use
to fit the model, but they are OK)
postscript(file="saReg%03d.eps",onefile=FALSE)
for (i in 1:length(names(DatasetSa))) {
#[...]
plot(augPred(DatasetGrp.fit,primary = ~R, level =
0:1),title=names(DatasetSa)[i])
#[...]
}
dev.off()
When I run this code I only get one empty figure even though the loop is
executed 70 times. If I try to run the command
plot(augPred(DatasetGrp.fit,primary = ~R, level =
0:1),title=names(DatasetSa)[i])
out...