px | R Documentation |
These functions compute percentile ranks and cumulative frequency distributions for frequency tables.
px(x, ...) ## Default S3 method: px(x, y, ys, ...) ## S3 method for class 'freqtab' px(x, margin = 1, y, ymargin = 1, ...) fx(x, ...) ## Default S3 method: fx(x, ...) ## S3 method for class 'freqtab' fx(x, margin = 1, ...)
x |
either a vector of counts, or an object of class
“ |
... |
further arguments passed to or from other methods. |
y |
an object of class “ |
ys |
vector specifying the |
margin, ymargin |
integers specifying the margins for which frequencies
or percentile ranks will be returned. |
These functions compute percentile ranks and cumulative frequencies for a
univariate distribution, and percentile ranks from one univariate
distribution (x
) corresponding to score values in another (y
).
A vector is returned containing either percentile ranks or
cumulative frequencies with length equal to length(x)
.
Anthony Albano tony.d.albano@gmail.com
freqtab
x <- as.freqtab(ACTmath[, 1:2], drop = TRUE) y <- as.freqtab(ACTmath[, c(1, 3)], drop = TRUE) # Percentile ranks for the x scale round(px(x), 3) # Percentile ranks in y for x each score round(px(x, y = y), 3) # Cumulative frequency distribution for x round(fx(x), 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.