makeVariogram(test.out, make.variogram, sample.clusters, max.dist)data.frame. Usually the output of betaRegression. Must contain columns chr, pos, p.val and cluster.id.logical. Default is TRUE.NULL, and all data is used to
estimate the variogram. If set to numeric, the variogram will
be estimated on the basis of the data of randomly selected
sample.clusters only. Especially useful if there are many clusters.list of two: A matrix, called v with columns
h and v, and a numeric, called
h.est. v comprises the data that was used to estimate
the variogram. h.est comprises the distances seen
in the data. If sample.clusters=NULL, h.est is identical to v$h.list of data frames. Each data frame corresponds
to a CpG cluster and contains same information as test.out
plus the columns z.score and pos.new (position corresponding to the
respective CpG cluster).qnorm(1 -
P value). The variogram of the z-scores of locations $k$
and $l$ within one cluster is estimated robustly by
$$2 \hat{\gamma}(h) = [median{(Z_{k}-Z_{l})^2: (s_{k}, s_{l}) \in
N(h)}] / .455$$.betaRegressiondata(betaResults)
vario <- makeVariogram(betaResults)
plot(vario$variogram$v)Run the code above in your browser using DataLab