Skip to contents

Updates mean in phenotype_meta for the named phenotype. This value is the overall population mean added to every individual's liability before residuals and fixed/random shifts. It can also be set at definition time via the mean argument in define_phenotype(); define_effect_intercept() lets you update it without redefining the whole phenotype.

Usage

define_effect_intercept(pop, phenotype_name, mean)

Arguments

pop

A tidybreed_pop object.

phenotype_name

Character. Name of an existing phenotype in phenotype_meta.

mean

Numeric scalar. The new population mean / intercept value.

Value

The modified tidybreed_pop (invisibly).

Examples

if (FALSE) { # \dontrun{
pop <- pop |> define_effect_intercept("ADG", mean = 850)
} # }