I've ran a GLM with bSpline fit on some variables and I'm having trouble extracting the raw coefficient associated with those variables to give the customer an easily understandable effect.
My formula is as follows.
fit <- glm(freq ~ State_bucket + eff_year + channel + marital_status
+ usage + term + pay_plan + bSpline(age, degree = 1, knots = c(27,
70)) + vehicle_type +bSpline(vehicle_age, degree = 1, knots = c(6,
17)) + bSpline(RBA, degree = 1, knots = c(2750,26750)) +
bSpline(vehicle_length, degree= 1, knots = c(45)) +
bSpline(Credit, degree = 1, knots = c(375)), family =
quasipoisson(link="log"), data = spline_training_set)
For the sake of simplicity, I'll only focus on the age variable. The coefficient output is as follows:
I understand this is the coefficient for the 1st degree polynomial of age, but I need to be able to give the raw coefficient for each age in order to know how much the frequency moves relative to age changing.
Does anyone out there know how to get the interpretable coefficients out of the spline? possibly in r?

predictcommand over a range of ages. – AdamO Dec 13 '17 at 18:38Zeligin R can calculate 95% CIs. – AdamO Dec 15 '17 at 14:41