as.formula(frm1a),dat)
regards,
Heinz
Stephen O'hagan wrote/hat geschrieben on/am 23.08.2017 12:07:
> Until I get a fix that works, a work-around would be to rename the 'y1'
> column, used a fixed formula, and rename it back afterwards.
>
> Thanks for your help.
> SGO.
>
>
8:51
To: Stephen O'hagan <soha...@manchester.ac.uk>
Cc: r-help@r-project.org
Subject: Re: [R] boot.stepAIC fails with computed formula
SImplify your call to lm using the "." argument instead of manipulating
formulas.
> strt <- lm(y1 ~ ., data = dat)
and you do not need to
Until I get a fix that works, a work-around would be to rename the 'y1' column,
used a fixed formula, and rename it back afterwards.
Thanks for your help.
SGO.
-Original Message-
From: Bert Gunter [mailto:bgunter.4...@gmail.com]
Sent: 22 August 2017 20:38
To: Stephen O'hagan <s
I'm trying to use boot.stepAIC for feature selection; I need to be able to
specify the name of the dependent variable programmatically, but this appear to
fail:
In R-Studio with MS R Open 3.4:
library(bootStepAIC)
#Fake data
n<-200
x1 <- runif(n, -3, 3)
x2 <- runif(n, -3, 3)
x3 <- runif(n,
4 matches
Mail list logo