mean.psData {fitPS}R Documentation

An S3 method for computing the mean of clothing survey for the number of groups or size of groups

Description

An S3 method for computing the mean of clothing survey for the number of groups or size of groups

Usage

## S3 method for class 'psData'
mean(x, ...)

Arguments

x

an object of class psDatareadData for more details.

...

other arguments which are passed to sum

Value

the mean of the data. If there are r_i observations of the value n_i then the mean is given by

\sum_i\frac{r_i\times n_i}{\sum_i{r_i}}

.

Examples

data(Psurveys)
mean(Psurveys$roux)

[Package fitPS version 1.0.1 Index]