Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



logistic regression
Posted:
Nov 1, 2013 10:52 AM


Dear all,
I have data as follows:
x1 x2 x3 x4 x5 0.66 0.23 0.58 0.17 55.00 0.89 0.98 0.58 1.25 69.00 0.96 0.36 0.28 0.17 91.00 0.03 0.64 0.58 1.99 81.00 0.89 1.06 0.58 1.25 58.00 1.42 0.55 0.58 0.91 83.00 etc...
Is it ok for me to apply logistic regression to fitting regression model of those data?
i tried the following script, but it does not work.
[n m] = size(x5) y = [x5 ones(n,1)] b = glmfit([x1 x2 x3 x4], y, 'binomial','link','logit')
and I got Warning: ??? Error using ==> glmfit at 168 Y must contain values in the interval [0,N] for the binomial distribution.
I really need help from all of you.
Thank you
Regards, Nyoman Sukajaya



