Diff for "FAQ/perc" - CBU statistics Wiki
location: Diff for "FAQ/perc"
Differences between revisions 1 and 16 (spanning 15 versions)
Revision 1 as of 2008-04-11 10:52:14
Size: 424
Editor: PeterWatson
Comment:
Revision 16 as of 2008-04-11 12:13:29
Size: 787
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Percentile (score) = 100$$\frac{n \leq score}{N}$$ Percentile (score) = 100 $$\frac{\mbox{n} \leq \mbox{score}}{\mbox{N}}$$
Line 8: Line 8:
1 - Percentile (score) = 100$$\frac{n \gt score}{N}$$ 100 - Percentile (score) = 100 $$\frac{\mbox{n} \gt \mbox{score}}{\mbox{N}}$$
Line 17: Line 17:
In R the percentages of people with scores equal or below each observed score can be obtained by running

{{{
perc <- rep(-99,length(score))
ict <- 1
b <- duplicated(score)
for (ict in 1:length(score) {
for (i in score) {
perc[ict] <- 100*sum(score<=i)/length(score)
ict <- ict+1
}
 }
perc
score
}}}

How do I find out how many people have a score above a certain value?

Percentiles give the percentage of people who have a score below a threshold score.

Percentile (score) = 100 $$\frac{\mbox{n} \leq \mbox{score}}{\mbox{N}}$$

100 - Percentile (score) = 100 $$\frac{\mbox{n} \gt \mbox{score}}{\mbox{N}}$$

The percentiles for each score are routinely outputted using the frequency procedure in SPSS.

FREQUENCIES VAR=SCORE.
EXE.

In R the percentages of people with scores equal or below each observed score can be obtained by running

perc <- rep(-99,length(score))
ict <- 1
b <- duplicated(score)
for (ict in 1:length(score) {
for (i in score) {
perc[ict] <- 100*sum(score<=i)/length(score)
ict <- ict+1
}
 }
perc
score

None: FAQ/perc (last edited 2013-03-08 10:17:13 by localhost)