Data manipulation for statistical analysis
조회 수: 1 (최근 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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!