This is already fixed in the current stepAIC for R-devel, to be releases with R 1.7.0.
On Wed, 19 Mar 2003 [EMAIL PROTECTED] 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, [EMAIL PROTECTED] 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 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
