Data manipulation for statistical analysis

3 次查看(过去 30 天)
Dear All,
I just wondering instead of recoding variables as 0 1 or 1 2 3 4, can MATLAB, like in R, directly work on the ordinal or nominal characters as a part of the analysis ?
I used "dataset" to import the data, where ordinal or nominal variables were in their character forms, say Sex: Male/Female.
But, it's a cell array. Then I used "nominal" function to redefine them.
However, in either way, the variable cannot be used in the analysis such as"glmfit", as the algorithm written is to check "isnan". Unfortunately, "isnan" does NOT work in either of cell array or nominal data.
Therefore, is recoding the only way that I can do the statistical analysis in MATLAB ?
Thanks and Regards

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by