grpstats for several variables
古いコメントを表示
Hello everybody,
i have values for Sodium, creatinine and many more variables for patients. I need to calculate mean median values of them. Should i use everytime mean(ds.Sodium) or is there a easier way to do that ? i ve been trying to use grpstats function i couldnt make it work. if someone would explain me i would be very happy. thank you
2 件のコメント
Adam Danz
2019 年 9 月 8 日
What problems are you having? There are lots of examples in documentation which is the first place to go for help.
Adam Danz
2019 年 9 月 9 日
True,
DSSTATS = grpstats(DS,GROUPVARS,WHICHSTATS) .
stat1 = grpstats(ds, {'Sodyum' , 'AST'} , {'mean' , 'median'}) i did this, for my dataset ds, {variables} , {what i want to calculate'means'}
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Repeated Measures and MANOVA についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!