Re: [R] Question using stepAIC

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Tue, 05 Jun 2007 09:04:04 +0200

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.



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. Received on Tue 05 Jun 2007 - 07:20:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Jun 2007 - 01:31:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.