generate_random_start: Generate random starting values from a parameter table

View source: R/mcmc_helpers.R

generate_random_startR Documentation

Generate random starting values from a parameter table

Description

generate_random_start generates random starting values for all parameters to be fitted

Usage

generate_random_start(parTab, random_seed, f)

Arguments

parTab

a parameter table data frame of the form needed by the run_mcmc function

random_seed

random seed for generation The info used here are the columns parTab$fixed: 1 indicates the parameter is fixed, 0 indicates the parameter is to be fitted parTab$lower_bound: lower bounds for parameters allowed for proposal steps parTab$upper_bound: lower bounds for parameters allowed for proposal steps

Value

a data frame of the same for as parTab, but the values of the fitted parameters are chosen from a uniform distribution with bounds lower_bound, upper_bound


ada-w-yan/deltaomicron1 documentation built on June 24, 2022, 5:41 a.m.