[Rd] stepAIC() (PR#2655)
ripley at stats.ox.ac.uk
ripley at stats.ox.ac.uk
Thu Mar 20 07:38:33 MET 2003
This is already fixed in the current stepAIC for R-devel, to be releases
with R 1.7.0.
On Wed, 19 Mar 2003 slteng at stat.berkeley.edu wrote:
> Full_Name: Melinda Teng
> Version: 1.6.2
> OS: windows M E
> Submission from: (NULL) (136.152.196.249)
>
>
> Greatly appreciate for any advice on the following. Many grateful thanks. Please
> do not hesitate to contact me for further details.
> -------------------------------------------------------------------
>
> Error message :
> "Error in model.frame.default(formula = Y ~ X4, data = TS, drop.unused.levels =
> TRUE) : Object "TS" not found"
>
> Actions taken :
> debug(), traceback(), and looking into model.frame.default.
>
> Situation :
> stepAIC() is used to select variables into a regression model by forward
> selection procedure. This stepAIC() is programmed within a function where the
> data.frame of the required data are defined and computed.
>
> Problem : When I cut and paste the body of the function Q and run in the
> workspace, it will give me the required output and the data.frame from gfit (T)
> is passed into stepAIC() for the selection procedure. However when I execute the
> same codes, but now through the function (Q(), see below), the above error
> message appears.
[...]
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list