sample_priors: Randomly sample from priors for fitting process

View source: R/fit.R

sample_priorsR Documentation

Randomly sample from priors for fitting process

Description

This function uses the dataframe output of define_priors() that defines the prior distributions for all parameter that must be fitted.

Usage

sample_priors(prior, prm.abc, all.positive = TRUE)

Arguments

prior

Dataframe. Priors' parameters and distributions. Output of define_fit_priors().

prm.abc

List. Varibales required for ABC fitting method created by function define_abc_prms().

all.positive

Logical. Default is TRUE, which means sampled values for priors will be truncated to be positive.

Value

Long dataframe. All the prior sampled values for the parameters to be fitted.


phac-nml-phrsd/wem documentation built on June 6, 2024, 11:06 p.m.