nmrval returning larger matrix than expected.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I've done a simple logstic regression for one predictor varilable (X) (a continuous set oberseved measruements) and one repsonse variable (Y) (fail or sucess taken for each oberserved measurement).
So without loads of detail, you can see this is a simple problem and the regression should take the form of
Why is it when i run mnrval(B,X) i get n-by-p+1 matrix back, instead of a n-by-p matrix?
Shouldn't nmrval(B,X) just return a 1 column vector for my problem as there is only only one predictor varible?
Thank you for you're help,
im very aware its likely a stupid question.
0 Kommentare
Antworten (1)
Steven Lord
am 26 Mai 2020
Does your X matrix contain a column of 1s? If so see the Note in the first item of the Description section on the documentation page for the mnrval function.
Siehe auch
Kategorien
Mehr zu Descriptive Statistics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!