Proportions EN - pdmoerland/wiki-biostatistiek-bilingual GitHub Wiki
Proportions
Deze pagina lezen in het Nederlands.
This page was translated from the Dutch-language original using AI and has not been fully reviewed. Where the two differ, the Dutch version takes precedence.
Contents
This topic is still being worked on. Want to contribute to the wiki? Email [email protected].
Proportions and percentages
Statistical tests for proportions
How do I determine a confidence interval for a proportion in SPSS?
In SPSS, you can very easily determine a confidence interval for a proportion via Analyze -> Descriptives -> Proportion Confidence Intervals. You do not need a data file (.sav) for this and can enter the observed counts directly. You then get the confidence interval for a binomial distribution (Jeffrey's confidence interval, called "Bayesian" in the R package binom).
Via syntax, this function is even richer. You can also use it to compare two observed proportions, for example with the following SPSS syntax: PROPOR NUM=15 10 DENOM=450 500 /LEVEL ALPHA=.05.
The following SPSS syntax shows all the possibilities of the PROPOR function, including examples: PROPOR /HELP.
I would like to report a different type of confidence interval. How can I calculate that?
With the binom-package in R, you can determine many different types of confidence intervals.
If you don't yet have much experience with R, this R code should be enough to get you started:
install.packages(“binom”) require(binom) X = 5 # numerator; change this number to the number of <successes/cases/heads in a coin toss> N = 45 # denominator; change this number to the number of <patients treated/people examined/times a coin was tossed> binom.confint(X, N, conf.level = 0.95) help(binom)
Z-test for proportions
The z-test for proportions is a parametric test for binary/dichotomous variables, which allows you to compare/test an observed proportion in your sample against a pre-specified proportion (the null hypothesis).
However, this test is not suitable for extreme proportions (close to zero or one) or for small samples.
Finished reading? You can go to the Overview of all topics, or to Choosing a test for help picking a suitable test or analysis. Want to learn more about biostatistics? Then follow the AMC e-learning Practical Biostatistics. Did you find something on these pages that isn't correct? Does a link not work? Or would you like to contribute to the wiki? Then get in touch with us.
This biostatistics wiki is an initiative of the former statistics helpdesk of Amsterdam UMC, location AMC. Amsterdam UMC staff can request statistical support via intranet.