This function calcualtes a suite of pre-defined statistics on binned distributions using pre-calculated midpoints for each bin.
a (non-empty) data frame with columns named ID, mids, and hb.
Currently has the following stats: 'mean','median','gini','theil','cv','MLD'. FIXME - reference to functions in gamlss
Returns a data frame with the following columns: 'ID','mean','median','gini','theil','cv','MLD', 'SLD'. "cv" is the coefficient of variation, "MLD" is the mean log deviance, and "SLD" is the squar root of the MLD.
1 2 3 4 5 6 7
Loading required package: gamlss Loading required package: splines Loading required package: gamlss.data Attaching package: 'gamlss.data' The following object is masked from 'package:datasets': sleep Loading required package: gamlss.dist Loading required package: MASS Loading required package: nlme Loading required package: parallel ********** GAMLSS Version 5.1-3 ********** For more on GAMLSS look at http://www.gamlss.org/ Type gamlssNews() to see new features/changes/bug fixes. Loading required package: gamlss.cens Loading required package: survival
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.