I ran into the following error when using mvsum with an lm object:
"Error in FUN(X[[i]], ...) : object 'expnt' not found"
A reproducible example:
library(survival)
fit <- lm(ph.karno ~ age + sex, data = lung)
mvsum(fit, lung)
After looking at the code, I think this can be fixed by setting expnt = FALSE when checking for the object type (type == "lm"). There might be similar issues for other object types, however.
I ran into the following error when using mvsum with an lm object:
"Error in FUN(X[[i]], ...) : object 'expnt' not found"
A reproducible example:
library(survival) fit <- lm(ph.karno ~ age + sex, data = lung) mvsum(fit, lung)
After looking at the code, I think this can be fixed by setting expnt = FALSE when checking for the object type (type == "lm"). There might be similar issues for other object types, however.