Normierung {CMO} | R Documentation |
Foreach population stratification it builds a SPSS like frequency table based on the stratified test value vector. Calculates amongst others cumulative frequency, percentile ranks and rounded percentile ranks. Associates test values to (rounded) percentile ranks. Saves a Normtabelle foreach stratification.
Normierung(Base, Faktor = NULL, Teilstichproben = levels(factor(Faktor)), Dateipraefix = "")
Base |
numeric test value vector |
Faktor |
factor id describing the stratification of individuals, if FALSE(default) the total population is used without stratification |
Teilstichproben |
stratifications of interest (defined by levels of Faktor). The levels of Faktor of interest define a new total population for which a Normtabelle is calculated. Additionally foreach Faktor of interest a Normtabelle is calculated. |
Dateipraefix |
nameprefix for saving the Normtabelle, describing the stratification |
Rounded percentile ranks are calculated using the function
ceiling
. The overall population is defined only by those
where (stratification) Faktor is not NA.
A list of class ListeNormtabellen which contains one List of class Normtabelle per stratification or a list of class Normtabelle if no stratification is used (Faktor = FALSE.) Additionally a data.frame stats.summary summarizing the data of each Normtabelle.
Christian Montel
Normierung
and normieren
#mimik some data vector data <- ceiling(runif(1000)*100) #mimik some stratification stratif <- factor(rep(c(1,2),500)) str(Normierung(Base=data, Faktor=stratif, Teilstichproben = c(1,2), Dateipraefix=""))