You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Dustin,
I have models that contain the poly() function, and they won't work in compare.fits unless I've added another model first that doesn't contain the poly() function. I would like to just be able to model them on their own or compare them to other models with the poly() function, but it gives me an error.
Hi Dustin,
I have models that contain the poly() function, and they won't work in compare.fits unless I've added another model first that doesn't contain the poly() function. I would like to just be able to model them on their own or compare them to other models with the poly() function, but it gives me an error.
For example:
m1 = lm(Var1 ~ Var2 + Var3 + poly(Var3, degree=3) ,data=d)
m2 = lm(Var1 ~ Var2 + Var3 + I(Var3^3), data=d)
If I enter: compare.fits(Var1
Var3 | Var2, data=d, m2) - It worksVar3 | Var2, data=d, m2, m1) - It worksIf I enter: compare.fits(Var1
If I enter: compare.fits(Var1
Var3 | Var2, data=d, m1) or compare.fits(Var1Var3 | Var2, data=d, m1, m2)I get this error:
Error in
purrr::map()
:ℹ In index: 1.
Caused by error in
[.data.frame
:! undefined columns selected
Backtrace:
[.data.frame
(data, , missing_variable)Any help would be appreciated! Thank you.
The text was updated successfully, but these errors were encountered: