Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: logistic regression
Replies: 1   Last Post: Nov 4, 2013 10:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
nyoman sukajaya

Posts: 2
Registered: 11/1/13
logistic regression
Posted: Nov 1, 2013 10:52 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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










Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.