# life: Life Expectancies In ACSWR: A Companion Package for the Book "A Course in Statistics with R"

## Description

This data set consists of life expectancy in years by country, age, and sex.

## Usage

 `1` ```data(life) ```

## Format

A data frame with 31 observations on the following 8 variables.

`m0`

life expectancy for males at age 0

`m25`

life expectancy for males at age 25

`m50`

life expectancy for males at age 50

`m75`

life expectancy for males at age 75

`w0`

life expectancy for females at age 0

`w25`

life expectancy for females at age 25

`w50`

life expectancy for females at age 50

`w75`

life expectancy for females at age 75

## References

Everitt, B. S., and Hothorn, T. (2011). An Introduction to Applied Multivariate Analysis with R. Springer.

## Examples

 ```1 2 3 4``` ```data(life) factanal(life,factors=1)\$PVAL factanal(life,factors=2)\$PVAL factanal(life,factors=3) ```

### Example output

```   objective
1.879555e-24
objective
1.911514e-05

Call:
factanal(x = life, factors = 3)

Uniquenesses:
m0   m25   m50   m75    w0   w25   w50   w75
0.005 0.362 0.066 0.288 0.005 0.011 0.020 0.146

Factor1 Factor2 Factor3
m0  0.964   0.122   0.226
m25 0.646   0.169   0.438
m50 0.430   0.354   0.790
m75         0.525   0.656
w0  0.970   0.217
w25 0.764   0.556   0.310
w50 0.536   0.729   0.401
w75 0.156   0.867   0.280

Factor1 Factor2 Factor3