p_prob: Proportional (probability) distribution

View source: R/p_prob.R

p_probR Documentation

Proportional (probability) distribution

Description

Generates an n probability values in accordance with a specified proportional ratios.

Usage

p_prob(n,  p_ratio = 20)

Arguments

n

a number of data points.

p_ratio

the smaller of the terms of specified proportional ratios. For instance, for a 30:70 ratio, p_ratio is equal to 30. Default value is set as 20. Valid p_ratio values are: (5, 10, 20, 30, 40).

Details

Proportional ratios are used to divide the area under curve (auc) of an exponential function such that for any given percentage ratios a:b, the auc is divided into b:a.

Value

Returns a dataframe with a probability field.

Examples

p_prob(n = 15,  p_ratio = 20)

stppSim documentation built on Sept. 11, 2024, 9:14 p.m.