life: Life Expectancies

Description Usage Format References Examples

Description

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

Usage

1

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 

Loadings:
    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
SS loadings      3.375   2.082   1.640
Proportion Var   0.422   0.260   0.205
Cumulative Var   0.422   0.682   0.887

Test of the hypothesis that 3 factors are sufficient.
The chi square statistic is 6.73 on 7 degrees of freedom.
The p-value is 0.458 

ACSWR documentation built on May 2, 2019, 6:53 a.m.