joint_probability: Compute the probability of data.

Description Usage Arguments Value

View source: R/popmod.R

Description

Compute the probability of data under an EDP population model.

Usage

1
joint_probability(pm, target, given = NULL, log = FALSE)

Arguments

pm

an EDP population model, from popmod(...)

target

a data frame whose column names are all in names(pm) and whose types are compatible with schema(pm)

given

a data frame whose column names are all in names(pm) and whose types are compatible with schema(pm)

log

should log-probabilities be returned?

Value

If log = FALSE, a numeric vector of probabilities (or densities) of the rows of target. If log = TRUE, a numeric vector of log probabilities (or densities) of the rows of target. If given is specified, its columns are conditioned on. It must have either one row or as many rows as target.


edpclient documentation built on May 2, 2019, 2:01 p.m.