Description Usage Format Source Examples
The monde84
data frame gives five demographic variables
for 48 countries in the world.
1 |
This data frame contains the following columns:
pib: Gross Domestic Product
croipop: Growth of the population
morta: Infant Mortality
anal: Literacy Rate
scol: Percentage of children in full-time education
Geze, F. and Coll., eds. (1984) L'état du Monde 1984 : annuaire économique et géopolitique mondial. La Découverte, Paris.
1 2 3 4 5 6 7 8 | data(monde84)
X <- cbind.data.frame(lpib = log(monde84$pib), monde84$croipop)
Y <- cbind.data.frame(lmorta = log(monde84$morta),
lanal = log(monde84$anal + 1), rscol = sqrt(100 - monde84$scol))
pcaY <- dudi.pca(Y, scan = FALSE)
pcaiv1 <- pcaiv(pcaY, X0 <- scale(X), scan = FALSE)
sum(cor(pcaiv1$l1[,1], Y0 <- scale(Y))^2)
pcaiv1$eig[1] #the same
|
[1] 2.227037
[1] 2.227037
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.