nan as output of partial correlation analysis
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm running a partial correlation analysis on series of data.
How should I interpret a RHO=NaN?
Is there enything wrong or NaN is one of the possible results?
It occurs just for certain data sets.
댓글 수: 0
답변 (1개)
Oleg Komarov
2011년 8월 23일
X = rand(100,2);
X(10) = NaN;
partialcorr(X)
You have NaNs in your data.
partialcorr(X,'rows','pairwise')
"A 'pairwise' value for the rows parameter can produce a RHO that is not positive definite. A 'complete' value always produces a positive definite RHO, but when data is missing, the estimates will be based on fewer observations, in general."
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!