close allA=[ind us2y10 rec];X=[ind us2y10];[logitCoef] = glmfit(X,rec,'binomial','link','logit');yfit=[ones(359,1) X]*logitCoef;plot(yfit);
Hello everyone!
I'm trying to estimate a logit model for the probability of recession in the US, based on a constante factor, the inddustrial production and US yield curve slope for 2y and 10y. The results are not the one supposed to be, since the model is presenting out of bounds ([0,1]) estimates.
Thanks in advance for your time in checking the script.
Cheers,
Pedro
Best Answer