Displaying 1 result from an estimated 1 matches for "logistic_regmod2".
2023 Aug 01
2
Plotting Fitted vs Observed Values in Logistic Regression Model
...mn which gives information on the discount rate of the coupon
n: is the sample or number of observations
r: is the count of redeemed coupons
ratio: is just the ratio of redeemed coupons to n (total number of
observations)
#Fitting a logistic regression model to response variable y for problem 13.4
logistic_regmod2 <- glm(formula = ratio~x, family = binomial(logit), data =
random_mod12_data2)
I would like to plot the value of r (in the y-axis) vs x (the different
discount rates) and then superimpose the logistic regression fitted values
all in the same plot.
How could I accomplish this?
Any help and/or...