Re: [R] boot.stepAIC fails with computed formula

2017-08-24 Thread Stephen O'hagan
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. > >

Re: [R] boot.stepAIC fails with computed formula

2017-08-23 Thread Stephen O'hagan
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

Re: [R] boot.stepAIC fails with computed formula

2017-08-23 Thread Stephen O'hagan
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

[R] boot.stepAIC fails with computed formula

2017-08-22 Thread Stephen O'hagan
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,