How to calculate skewness and kurtosis via 'groupsummary'?
3 次查看(过去 30 天)
显示 更早的评论
Hi!
I have a question about how to calculate skewness and kurtosis using the 'groupsummary' function.
I am working with a subset of variables from a table.
Thanks for your help!
0 个评论
回答(1 个)
dpb
2021-8-23
编辑:dpb
2021-8-23
Presuming you have the Statistics Toolbox which defines the two statistics of interest m-files--
G = groupsummary(T,groupvars,method,datavars)
where
method={'skewness','kurtosis'};
You'll define the other inputs to match your wishes on grouping and data variables.
If you don't have the requisite TB, then write your own functions and refer to them in their place.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!