Other CpGassoc Functions {CpGassoc}R Documentation

Information on miscellaneous other functions

Description

cpg.length compares the dimensions of the covariates, the independent phenotype, chip, and the matrix of beta values from cpg.assoc or cpg.perm. If the number of individuals does not match up. Stops the code.

pointsizefunction simply scales the size of the points for the qq-plot for plot.cpg and plot.cpg.perm

cpgassocsummary is used by cpg.work when the phenotypes contains such small amount of variance such that matrix methods can not be used. Takes an object of class "aov" or "mlm" and gets the test statistics from these objects while avoiding doing a loop or the list structures which is typically done if one does summary on one of these objects.

Usage

cpg.length(indep, numpatients, covariates, chip.id)

pointsizefunction(x)

cpgassocsummary(object)

Arguments

indep

object indep from cpg.assoc, cpg.work or cpg.perm.

numpatients

The number of column of the object beta.values in cpg.work or cpg.perm or number of columns of beta.val in cpg.assoc

covariates

object covariate from cpg.assoc, cpg.work or cpg.perm.

chip.id

object chip.id from cpg.assoc, cpg.work or cpg.perm.

x

the p-values from the object "cpg" or "cpg.perm"

object

An object of "aov" or "mlm"

Details

cpg.length stops the functions if the dimensions do not add up. Used Internally by CpGassoc

pointsizefunction simply returns a vector of equal length of x to be used in plot for the cex option.

cpgassocsummary returns a matrix of columns two and three of the results value of an "cpg" or "cpg.perm" object. This is for the cpg sites with non-missing data

See Also

cpg.perm cpg.assoc scatterplot manhattan plot.cpg.perm


[Package CpGassoc version 2.70 Index]