Hi all,
Iam new to python and trying to replicate my codes from matlab to python. For one of my statistical analysis in matlab i use the following code
[b, dev, stats ] = glmfit(U, A, 'binomial', 'link', 'logit');
%calculate fit-function
[yfit, yhi, ylo] = glmval(b,U,'logit', stats);
Where "U" is a measurement and "A" is a binary response to this measurement. Both U and A are vectors. "yfit" is a fit function on the measured data and yhi and ylo gives teh confidence interval.
I am trying to get transformed in python. What i manage was
glm_binom = sm.GLM(A,U, family=sm.families.Binomial())
glm_binom_fit=glm_binom.fit()
I think this gives me a fit on "U" and "A". How can i get the fit function after this step and calculate my confidence interval.
Thanks
Nitesh