mixed_si {seliNDRIx}R Documentation

Title Construction of selection index

Description

Title Construction of selection index

Usage

mixed_si(data, traits, fixed, random, economic_values)

Arguments

data

A data frame containing the fixed effects, random effects and traits

traits

A character vector specifying trait names for which index has to be calculated

fixed

The fixed effects

random

The random effects

economic_values

The relative economic values

Value

Results of selection index

Examples

# Example dataset
data("data", package = "seliNDRIx", envir = environment())
traits <- c("tmy", "py", "fatyield")
fixed <- c("farm", "soc", "poc")
random <- c("sire")
economic_values <- c(1, 0.85, 0.65)
results <- mixed_si(data = data, traits = traits,
fixed = fixed, random = random, economic_values = economic_values)

[Package seliNDRIx version 0.1.2 Index]