To remove NaN values and to calculate PCA of dataset

조회 수: 3 (최근 30일)
Khaing Zin Htwe
Khaing Zin Htwe 2016년 5월 9일
편집: per isakson 2016년 5월 10일
Dear sir,
I have a data set of 141x3084 size that includes NaN values terribly. The overall aim is to reduce the dimensions of data set. But after normalize the data set, I can't calculate the score,latent,var. They all are zeros.Why,sir. After that, I calculate PCA without normalization , I get the NaN value as the result though. Seriously!!! How can I solve my problem,sir. It might be easy for you,sir. Thanks all.
  댓글 수: 1
per isakson
per isakson 2016년 5월 10일
편집: per isakson 2016년 5월 10일
By default, pca performs the action specified by the 'Rows','complete' name-value pair
argument. This option removes the observations with NaN values before calculation. Rows
of NaNs are reinserted into score and tsquared at the corresponding locations, namely
rows 56 to 59, 131, and 132.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Dimensionality Reduction and Feature Extraction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by