Learn R Programming

riskyr (version 0.1.0)

N: Number of individuals in the population.

Description

N is a frequency that describes the number of individuals in the current population (i.e., the overall number of cases considered).

Usage

N

Arguments

Format

An object of class numeric of length 1.

Details

Key relationships:

  1. to probabilities: A population of N individuals can be split into 2 subsets in 2 different ways:

    1. by condition: The frequency cond.true depends on the prevalence prev and the frequency cond.false depends on the prevalence's complement 1 - prev.

    2. by decision: The frequency dec.pos depends on the proportion of positive decisions ppod and the frequency dec.neg depends on the proportion of negative decisions 1 - ppod.

    The population size N is a free parameter (independent of the essential probabilities prev, sens, and spec).

    If N is unknown, a suitable minimum value can be computed by comp_min_N.

  2. to other frequencies: In a population of size N the following relationships hold:

Current frequency information is computed by comp_freq and contained in a list freq.

References

Consult Wikipedia: Statistical population for additional information.

See Also

is_freq verifies frequencies; num contains basic numeric parameters; init_num initializes basic numeric parameters; freq contains current frequency information; comp_freq computes current frequency information; prob contains current probability information; comp_prob computes current probability information.

Other frequencies: cond.false, cond.true, cr, dec.cor, dec.err, dec.neg, dec.pos, fa, hi, mi

Examples

Run this code
# NOT RUN {
N <- 1000   # => sets a population size of 1000
is_freq(N)  # => TRUE
is_prob(N)  # => FALSE (as N is no probability)
# }

Run the code above in your browser using DataLab