update_effect: Update one effect from the vector of effects

Description Usage Arguments Value

View source: R/mcmc.R

Description

Update one effect from the vector of effects

Usage

1
2
3
4
5
6
7
8
update_effect(
  effects,
  effect_index,
  distance = 0.2,
  trait,
  residual_variance,
  collapsed_genotypes
)

Arguments

effects

the current value of the effects vector, length at least 2

distance

parameter for proposal, ie, max distance from current effect value

trait

univariate trait for mapping

residual_variance

current value of residual variance.

collapsed_genotypes

genoprobs matrix, collapsed per current configuration matrix

effects_index

an integer from 1 to length of current effects vector, indicating which entry to update

Value

a list of length two


fboehm/reducedscan documentation built on April 30, 2021, 8:31 p.m.