Displaying 1 result from an estimated 1 matches for "toothvc2".
Did you mean:
toothvc
2004 Jan 04
0
termplot; failure to subset non-dataframe carriers (PR#6327)
...o carriers that
are in the environment but not in the data frame. This
generates a "subscript out of bounds" error.
> data(ToothGrowth)
> logdose <- log(ToothGrowth$dose)
> tooth.lm <- lm(len ~ logdose, data=ToothGrowth)
> termplot(tooth.lm) ## Works fine
> toothVC2.lm <- lm(len ~ poly(dose,2), data=ToothGrowth,
+ subset=ToothGrowth$supp=="VC")
> termplot(toothVC2.lm) ## Works fine
> toothVC.lm <- lm(len ~ logdose, data=ToothGrowth,
+ subset=ToothGrowth$supp=="VC")
> termplot(toothVC.lm)...