Learn R Programming

fitPS (version 1.0.1)

mean.psData: 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 psData
mean(x, ...)

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}}$$.

Arguments

x

an object of class psData---readData for more details.

...

other arguments which are passed to sum

Examples

Run this code
data(Psurveys)
mean(Psurveys$roux)

Run the code above in your browser using DataLab