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 rir_i observations of the value nin_i then the mean is given by

iri×niiri\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]