GLM_MCMC: mcmc for the GLM parameters

Description Usage Arguments Value

View source: R/GLM_mcmc_functions.R

Description

mcmc for the GLM parameters

Usage

1
GLM_MCMC(Niter, name_dir, pars_ini, x, y, plot_chain)

Arguments

Niter

number of interations

name_dir

where to save output

pars_ini

vector of inital parameters for GLM

x

covariates

y

explanatory variable

plot_chain

whether to plot the first parameter's chain (TRUE or FALSE)

Value

saves chain in a folder of name paste0(name_dir,"/","GLM_chain",fileIndex,"_output.csv")


mrc-ide/YFestimation documentation built on March 13, 2021, 1:40 p.m.