mix_rexp: Generates samples from two-part mixture of exponentials

Description Usage Arguments Value

View source: R/gps.R

Description

Generates samples from two-part mixture of exponentials

Usage

1
mix_rexp(n, rates = c(5, 1), alt_weight = 0.01, pval_scale = F)

Arguments

n

Sample size

rates

Rate parameter for each exponential component

alt_weight

Mixing weight for first exponential component; second has weight 1-alt_weight

pval_scale

Flag to return sample on 0,1 scale

Value

Sample from the mixture distribution


twillis209/pidProjCode documentation built on Nov. 7, 2021, 3:01 p.m.