partial_correlations_triangular: ***Internal Use Function*** This function calculates the...

Description Usage Arguments Value Examples

View source: R/all_functions.R

Description

Internal package function for calculating epsitatic correlations in sub-matrices

Usage

1
2
partial_correlations_triangular(genotype_1,genotype_rev_1,phenotype,coords,
glm=F,model=1)

Arguments

genotype_1

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_1

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

glm

setting controlling if is a lm or glm

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
2
partial_correlations <- partial_correlaiton_triangular(genotype_1,genotype_rev_1,
phenotype,coords,model)

AQS-Group/WISH documentation built on July 17, 2020, 12:12 a.m.