[R] Question using stepAIC
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Jun 5 09:04:04 CEST 2007
adschai at optonline.net wrote:
> Hi - I use stepAIC to automatically select the model. The stepAIC was applied on polr as follow:objPolr <- polr(formula=myformula, data=dat, method=METHOD);objPolr.step <- stepAIC(objPolr, trace=T);Then R complaints that it doesn't know about 'dat' when it executes the second line. Below is the exact error that I got when executing the stepAIC line above:Error in eval(expr, envir, enclos) : object "dat" not foundWould you please provide some guide to circumvent this? Thank you.- adschai
Please read the psoting guide mentioned below each message of this list
and learn to add appropriate line breaks to your messages or fix your
Enter key.
What is dat? Is it a data.frame in the Workspace? What R version, what
version of MASS, which OS?
Uwe Ligges
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list