Displaying 2 results from an estimated 2 matches for "coverage_type2".
2012 Oct 15
0
Error message with the effects package - 'Subscript out of bounds'
...lities from a logistic regression model.
However, I get an odd error message and don't know what the issue is.
When I attempt to generate the plots, I get the following error:
dat$won_ping = as.factor(dat$won_ping)
mod2 = glm(won_ping ~ our_bid +
age_of_oldest_driver2 +
credit_type2 +
coverage_type2 +
home_owner2 +
vehicle_driver_score +
currently_insured2 +
zipcode2,
data=dat, family=binomial(link="logit"))
> plot(effect("our_bid*home_owner2", mod2), rescale.axis=FALSE, multiline=TRUE)Warning message:In analyze.model(term, mod, xlevels, default.levels) :
ou...
2012 Sep 11
1
Plotting every probability curve
...ruct a gui which makes this easier, but I want to form
curve separately so that I can save them
library(TeachingDemos)
TkPredict(mod1)
Predict.Plot(mod1, pred.var = "our_bid", our_bid = c(0,300),
age_of_oldest_driver2 = "18 to 21",
credit_type2 = "POOR", coverage_type2 = "BASIC", home_owner2 =
"0",
state2 = "other", currently_insured2 = "0",
vehicle_driver_score = "0",
plot.args = "list()", type = "response")
Quick reproduceable example =
df = data.frame(sell=c("...