generatePrior: Generates the prior for a specific 'model'

Description Usage Arguments See Also

Description

Calling generatePrior() generates the prior object when priordefine() had been called. When this function is called all checks have been passed and prior construction can take place.

Usage

1
2
3
4
generatePrior(object, ...)

## S4 method for signature 'prior'
generatePrior(object, fdata, model, varargin, prior.wagner, s)

Arguments

object

A prior object to store the prior parameters and weights.

fdata

An fdata object holding the data. Observations in slot @y must be existent.

model

A model object specifying the finite mixture model.

varargin

NULL or a prior object. This enables the user to pass in an already constructed prior object that gets then completed.

prior.wagner

A logical indicating, if the prior from Wagner (2007) should be used in case of an exponential mixture model.

s

A numeric specifying the standard deviation s for the Metropolis-Hastings proposal.

See Also


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