How to deal with NaN statistical analysis?
Ältere Kommentare anzeigen
First block
[cmin, indice_min]=min(IRR(:,4));
min_dia=IRR(indice_min, 1:3);
disp(min_dia)
Second block
[cmean, indice_mean]=mean(IRR(:,4), ('omitnan')); %
mean_dia=IRR(indice_mean, 2:3);
disp(mean_dia)
Dear all,
I have been analysing a dataset, whereas I have noticed that for some statistical operations such as "min", "max", and also "mode", there are not problems if datastes contains blank spaces ("NaN"), nonetheless, for "median" as well as "mean" the statistical MATLAB functions present some issues, even if I include in the code 'omitnan'. The structure portrayed at "First Block" works correctly, nevertheless, "Second block" does not work properly presenting some issues. Would you helping me with this?
I hope you can help me to cope with this problem.
Sincerely,
2 Kommentare
Adam
am 2 Mär. 2020
You didn't tell us what the issues are and we don't have the data to run your code.
Tony Castillo
am 2 Mär. 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Univariate Discrete Distributions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!