GLM_MCMC_step: mcmc step for the GLM parameters

Description Usage Arguments Value

View source: R/GLM_mcmc_functions.R

Description

mcmc step for the GLM parameters

Usage

1
GLM_MCMC_step(param, x, y, chain_cov, adapt, accCurrent)

Arguments

param

vector of parameters for GLM

x

covariates

y

explanatory variable

chain_cov

covariance of chain up to now

adapt

whether to use the chain covariance to adapt the proposal distribution is 0 or 1

accCurrent

current posterior probability

Value

new param, new posterior probability, whether step was accepted or not


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