confidence intervals in multiple regression
No.14256177 ViewReplyOriginalReport
Quoted By: >>14256971 >>14256992 >>14257407 >>14257444 >>14257445
can anyone help me with an irl problem I have?
to do with confidence intervals
I need to calculate confidence intervals from a multiple regression predicted values
ideally using python
basically I ran a multiple regression, and obtained betas for the several ivs, then I am plotting the predictions for one of the variables from 0 to 1000, and all other variables held constant
I get a nice smooth line, but need to plot confidence intervals on it
Google says ols stats models has something like prediction intervals and also confidence intervals
when I plot them, they're very wide, so I think I'm doing it wrong.
I'm using python and getting my coefficients through statsmodels
I generate a linearly spaced array for my variable of interest (dose) from 0 to 1000, then hold the other variables constant and plot the predicted serum concentration as the dose changes.
Also there are confidence intervals reported for the independent variables coefficients.... do these matter in for the confidence interval of the predicted values?
thanks
to do with confidence intervals
I need to calculate confidence intervals from a multiple regression predicted values
ideally using python
basically I ran a multiple regression, and obtained betas for the several ivs, then I am plotting the predictions for one of the variables from 0 to 1000, and all other variables held constant
I get a nice smooth line, but need to plot confidence intervals on it
Google says ols stats models has something like prediction intervals and also confidence intervals
when I plot them, they're very wide, so I think I'm doing it wrong.
I'm using python and getting my coefficients through statsmodels
I generate a linearly spaced array for my variable of interest (dose) from 0 to 1000, then hold the other variables constant and plot the predicted serum concentration as the dose changes.
Also there are confidence intervals reported for the independent variables coefficients.... do these matter in for the confidence interval of the predicted values?
thanks