sample_prior: Sample prior

Description Usage Arguments Value See Also

View source: R/prior.r

Description

Generate one or more ssm objects with theta sampled from the prior distribution.

Usage

1
sample_prior(ssm, n, method = c("random"))

Arguments

ssm

a ssm object, returned by new_ssm.

n

numeric, sample size

method

character, method used to sample from prior distribution:

  • "random" randomly sample from the prior distribution

Value

if n==1: a ssm object, otherwise a tbl object with two columns: id (sampel index) and ssm (corresponding ssm object)

See Also

one_theta_sample_prior one_ssm_sample_prior


StateSpaceModels/ssminr documentation built on Feb. 7, 2020, 8:20 p.m.