Learn R Programming

PSIMEX (version 1.1)

initial: Calculation of the initial error prone value for inbreeding depression

Description

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

Usage

initial(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:

model

The correct expression of the model to calculate inbreeding depression

inb0

The starting value of inbreeding depression

se0

The starting standard error of inbreeding depression

pval0

The starting p-value of inbreeding depression

mean_inb0

The starting mean value of inbreeding coefficient

median_inb0

The starting median value of inbreeding coefficient

var_inb0

The starting variance of inbreeding coefficient