mean.errors | R Documentation |

S3 methods for `errors`

objects.

```
## S3 method for class 'errors'
mean(x, trim = 0, na.rm = FALSE, ...)
## S3 method for class 'errors'
weighted.mean(x, ..., na.rm = FALSE)
## S3 method for class 'errors'
median(x, na.rm = FALSE, ...)
```

`x` |
an |

`trim` |
the fraction (0 to 0.5) of observations to be
trimmed from each end of |

`na.rm` |
a logical evaluating to |

`...` |
further arguments passed to of from other methods. |

The `mean`

and `weighted.mean`

methods set the uncertainty as
the maximum of the standard deviation of the mean and the (weighted) mean of the uncertainty.

The `median`

method sets the uncertainty as `1.253 * errors(mean(x))`

,
which is derived from the asymptotic variance formula of the median. Note that
this value is valid only if the sample is big enough.

An `errors`

object.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.