calc_probabilities: Probability for certain degree of saturation

Description Usage Arguments See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
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)

gridsampler documentation built on May 2, 2019, 5:36 a.m.