get_init: Generate function for initial parameter values

Description Usage Arguments Value See Also

View source: R/get_init.r

Description

Creates a function which generates initial parameter seeds for passing to stan internally via spmrf.

Usage

1
get_init(prior = "horseshoe", likelihood = "normal", order = 1)

Arguments

prior

A character string specifying which prior to use on order-k differences. Choices are "horseshoe", "laplace", and "normal". Note that "laplace" priors are currently not available for coalescent likelihoods.

likelihood

A character string specifying the distribution of the observations. Choices are "normal", "poisson", "binomial", or "coalescent".

order

Numeric value specifying order of differencing (1, 2, or 3). Note that order 3 is currently not available for coalescent likelihoods.

Value

An object of class function for generating initial parameter seeds for passage to stan via spmrf. Parameters are appropriate to a model with specified prior, likelihood, and order.

See Also

spmrf, stan, get_model


jrfaulkner/spmrf documentation built on Sept. 27, 2020, 12:34 p.m.