Negative Data Points when using MNRFIT function

1 view (last 30 days)
I am trying to use MNRFIT to create a logistical regression for pseudo-zscores of neural signal data and the targets that they are reaching. Some of the pseudo-zscores I am using are negative values and MNRFIT shows this error because of it:
Error using linsolve Matrix must be positive definite.
Error in mnrfit (line 242)
bcov = linsolve(hess,eye(size(hess)),struct('SYM',true,'POSDEF',true));
I was wondering if there is anything I can do to fix this problem. If there is any way to adjust data without affecting it. I m not sure if shifting all the data points by the minimum to the right would be a appropriate solution since it may affect the regression.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!