Skip to contents

Evalulate the probability density function under the model.

Usage

model_pdf(x, later_mu, later_sd, early_sd = NULL, log = FALSE)

Arguments

x

Vector of quantiles

later_mu

Vector of the mean of the later component.

later_sd

Vector of the standard deviation of the later component.

early_sd

Vector of the standard deviation of the early component, or NULL if there is no early component (the default).

log

If TRUE, probabilities are given as log(p).

Value

Vector of probabilities

Examples

model_pdf(x = 1, later_mu = 1, later_sd = 1)
#> [1] 0.3989423
model_pdf(x = 1, later_mu = 1, later_sd = 1, early_sd = 3)
#> [1] 0.3144537