calc_probabilities {gridsampler}R Documentation

Probability for certain degree of saturation

Description

Calculate probability for getting certain proportion of categories with at least m constructs

Usage

calc_probabilities(r, n, ms, min.props = c(0.9, 0.95, 0.99))

Arguments

r

A dataframe. The result returned from sim_n_persons_x_times_many_n.

n

Vector of n for which to calculate probabilities.

ms

minimal number of constructs in each category

min.props

Proportion of categores to contain at least m constructs.

See Also

Other Utilities: expected_frequencies, prob_categories

Examples

prob <-  dexp(1:30, .05)
n <- seq(10, 80, by = 20)
r <- sim_n_persons_x_times_many_n(prob, n, a = 7, times = 100)
dd <- calc_probabilities(r, n, ms=1:5, min.props = c(0.9, .95, 1))
head(dd)


[Package gridsampler version 0.6 Index]