Learn R Programming

PSIMEX (version 1.1)

initial_herit: Calculation of the initial error prone value for heritability

Description

This function calculates the starting point for the P-SIMEX on heritability with the initial error in the pedigree.

Usage

initial_herit(model, data, pedigree)

Arguments

model

An object specifying the model to calculate inbreeding depression. It can be a lm or glm.

data

A dataset containing the phenotypic measurements on the population and the covariates which are included in the model.

pedigree

A dataset containing the initial pedigree structure. It must have three columns: id, parent1, parent2.

Value

A list:

h0

The starting value of heritability

seh0

The starting standard error of heritability

VA0

The starting value of additive genetic variance

VE0

The starting value of environmental variance