partial_correlations: This function calculates the epistatic correlations in a...

Description Usage Arguments Value Examples

Description

Internal function for calculating epsitatic correlations in sub-matrices

Usage

1
partial_correlations(genotype,genotype_rev,phenotype,coords,model)

Arguments

genotype

Dataframe with the genotype information, resulting from the function generate.genotype(). Make sure that the dataframe contains the same individuals as in the phenotype-file, and that those are in the same order.

genotype_rev

Same as genotpye but with reversed genotype coding

phenotype

Dataframe with the rows correspinding to the individuals in the analysis,and columns for the different measured phenotypes and fixed/random factors. Phenotypes should be continous variables.

coords

Matrix of row split coordinates for subseting input space

model

Specification controlling if MM or Mm directed interaction model is used.

Value

Epsitatic correlations and P-values for the selected set or subset of the data

Examples

1
partial_correlations <- function(genotype,genotype_rev,phenotype,coords,model)

victorcarmelo/WISH documentation built on May 3, 2019, 6:11 p.m.