Skip to content

Commit abc9b0f

Browse files
committed
add qqqnorm
1 parent 33e2877 commit abc9b0f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

man/ACLEDpopGDP.Rd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,20 @@ ACLEDpopGDP[grep('Saint', ACLEDpopGDP[, 'ACLEDcountry']), ]
135135
ACLEDpopGDP['CPV'==ACLEDpopGDP[, 'ISO3'], ]
136136
# NOTE: In this example, ACLEDcountry !=
137137
# WBcountry.
138+
139+
# Normal probability plots of population
140+
qqnorm(unlist(Pops), datax=TRUE)
141+
qqnorm(unlist(Pops), datax=TRUE, log='x')
142+
143+
(billion <- which(unlist(Pops)>1e9))
144+
# 2*5 = 10:
145+
# Probably India and China
146+
ACLEDpopGDP[c('China', 'India'), ]
147+
ACLEDpopGDP[c('China', 'India'), pops] / 1e9
148+
149+
# Normal probability plot of GDPpc
150+
GDPpc <- ACLEDpopGDP[c(GDPp, GDPn)]
151+
qqnorm(unlist(GDPpc), datax=TRUE)
152+
qqnorm(unlist(GDPpc), datax=TRUE, log='x')
138153
}
139154
\keyword{datasets}

0 commit comments

Comments
 (0)