Learn R Programming

MoBPS (version 1.13.1)

add.fixed.effects: 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)

Value

Population list

Population list

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

Examples

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

Run the code above in your browser using DataLab