AIC/Deviance calculation

Share:

Description

function for AIC/Deviance calculation given index of deleted SNPs

Usage

1
AIC(case.sub, ctl.sub, lib.sub, lib.sub.names, deleted.snps, ref = "NA")

Arguments

case.sub

case subjects, two columns for two haplotypes

ctl.sub

control subjects, two columns for two haplotypes

lib.sub

the alleles library contains allele sequences for those only appear in the case and control samples

lib.sub.names

the corresponding names of the alleles

deleted.snps

a vector of positions of deleted SNPs

ref

allele names for the reference level, the default reference level (ref="NA") is the most common allelels

Value

logLK

log-likelihood

AIC

AIC

res

the result object return from GLM

dev

deviance

df

degree of freedom

dev.null

deviance for null model

df.null

degree of freedom for null model

Author(s)

Xin Huang