weightedAverage | R Documentation |
join multiple datapoints weighted by stdev
weightedAverage(ms, sds, dfs, ws = (1/sds)/sum(1/sds))
ms |
data means |
sds |
data stdevs |
dfs |
degrees of freedom for each data point |
ws |
datapoint weights. By default these get auto-calculated from sds |
a vector containing the joint mean (mj), joint stdev (sj), and combined degrees of freedom
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.