Diff for "FAQ/perc" - CBU statistics Wiki
location: Diff for "FAQ/perc"
Differences between revisions 4 and 5
Revision 4 as of 2008-04-11 10:57:30
Size: 592
Editor: PeterWatson
Comment:
Revision 5 as of 2008-04-11 11:02:11
Size: 669
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
In R the percentage of people with a score equal or below 3 can be written as In R the percentages of people with scores equal or below each observed score can be obtained by running
Line 19: Line 20:
100*sum(score<=3)/length(score) > for (i in score) {
+ perc[i] <-
100*sum(score<=i)/length(score)
+ }
> perc

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}}$$

1 - 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

> for (i in score) {
+ perc[i] <- 100*sum(score<=i)/length(score)
+ }
> perc

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