hasPriorPar-prior-model-method: Checks for parameters in a 'prior' object

Description Usage Arguments See Also Examples

Description

Calling hasPriorPar() checks if model-appropriate parameters are stored in the prior object.

Usage

1
2
## S4 method for signature 'prior,model'
hasPriorPar(object, model, verbose = FALSE)

Arguments

object

A prior object containing the specifications for the prior.

model

A model object containing the specifications for the model.

verbose

A logical indicating, if the output should be verbose.

See Also

Examples

1
2
3
4
5
6
7
# Define a Poisson mixture model.
f_model <- model("poisson", par = list(lambda = c(0.3, 0.7)), K = 2)
# Call the default constructor.
f_prior <- prior()
# Check if the prior has appropriate parameters defined.
hasPriorPar(f_prior, f_model)
## Not run: hasPriorPar(f_prior, f_model, TRUE)

simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.