search for: strt1

Displaying 4 results from an estimated 4 matches for "strt1".

Did you mean: str1
2017 Aug 23
3
boot.stepAIC fails with computed formula
...Message----- From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: 22 August 2017 20:38 To: Stephen O'hagan <SOhagan at manchester.ac.uk> Cc: r-help at r-project.org Subject: Re: [R] boot.stepAIC fails with computed formula OK, here's the problem. Continuing with your example: strt1 <- lm(y1 ~1, dat) strt2 <- lm(frm1,dat) > strt1 Call: lm(formula = y1 ~ 1, data = dat) Coefficients: (Intercept) 41.73 > strt2 Call: lm(formula = frm1, data = dat) Coefficients: (Intercept) 41.73 Note that the formula objects of the lm object are different: strt2 do...
2017 Aug 22
0
boot.stepAIC fails with computed formula
OK, here's the problem. Continuing with your example: strt1 <- lm(y1 ~1, dat) strt2 <- lm(frm1,dat) > strt1 Call: lm(formula = y1 ~ 1, data = dat) Coefficients: (Intercept) 41.73 > strt2 Call: lm(formula = frm1, data = dat) Coefficients: (Intercept) 41.73 Note that the formula objects of the lm object are different: strt2 do...
2017 Aug 23
0
boot.stepAIC fails with computed formula
...o:bgunter.4567 at gmail.com] > Sent: 22 August 2017 20:38 > To: Stephen O'hagan <SOhagan at manchester.ac.uk> > Cc: r-help at r-project.org > Subject: Re: [R] boot.stepAIC fails with computed formula > > OK, here's the problem. Continuing with your example: > > strt1 <- lm(y1 ~1, dat) > strt2 <- lm(frm1,dat) > > >> strt1 > > Call: > lm(formula = y1 ~ 1, data = dat) > > Coefficients: > (Intercept) > 41.73 > >> strt2 > > Call: > lm(formula = frm1, data = dat) > > Coefficients: > (Intercept...
2017 Aug 22
4
boot.stepAIC fails with computed formula
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, -3, 3) x4 <- runif(n, -3, 3) x5 <- runif(n, -3, 3) x6 <- runif(n, -3, 3) x7