How do I log normalise a set of positively skewed data and find the z scores?

5 ビュー (過去 30 日間)
nehohmee
nehohmee 2020 年 5 月 11 日
コメント済み: Image Analyst 2020 年 5 月 11 日
Hi there,
I have a set of positively skewed data (A) that I wish to log normalise before I find the z scores of the data. However, after applying log to my data, the z scores returned with NaN for all indexes.
log_A = log(A);
zscore_A = zscore(log_A);
After taking the log of the data:
After using the z score function:
Am I doing something wrong?
I really appreciate your help! Thank you in advance!
  2 件のコメント
Jeff Miller
Jeff Miller 2020 年 5 月 11 日
What are the values in A for which log(A) is -inf?
Image Analyst
Image Analyst 2020 年 5 月 11 日
Please attach A in a .mat file.
save('answers.mat', 'A');
Use the paper clip icon to attach the mat file.

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by