add.fixed.effects: Add fixed effects to traits

View source: R/add.fixed.effects.R

add.fixed.effectsR Documentation

Add fixed effects to traits

Description

Function to add fixed effects to existing set of traits

Usage

add.fixed.effects(population, fixed.effects, replace = FALSE)

Arguments

population

population list

fixed.effects

Matrix containing fixed effects (p x k -matrix with p being the number of traits and k being number of fixed effects; default: not fixed effects (NULL))

replace

Set to TRUE to delete previously added fixed effects

Value

Population list

Population list

Examples

data(ex_pop)
population <- add.fixed.effects(ex_pop, fixed.effects = matrix(c(3,5), nrow=1))

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.