hf {wtest} | R Documentation |
Patameter Estimation for W-test Probability Distribution
Description
Estimate parameters (h and f) for W-test
.
Usage
hf(data, w.order, B = 400, n.sample = nrow(data),
n.marker = "default.nmarker")
Arguments
data |
a data frame or matrix containing genotypes in the columns and subjects in the rows. Genotypes should be coded as (0, 1, 2) or (0, 1). |
w.order |
a numeric number. |
B |
a numeric number specifying the number of replicates. Default is 400. |
n.sample |
a numeric number specifying the number of samples to be used for estimating parameters. Default is the total number of samples in the data. |
n.marker |
a numeric value, the number of biomarkers to include in bootstrapping. For |
Value
a set of h and f values indexed by k, estimated automatically. For main effect, k is the number of levels of a predictor variable. For interactions, k is the number of categorical combinations of a variable pair.
Author(s)
Rui Sun, Maggie Haitian Wang
References
Maggie Haitian Wang, Rui Sun, Junfeng Guo, Haoyi Weng, Jack Lee, Inchi Hu, Pak Sham and Benny C.Y. Zee (2016). A fast and powerful W-test for pairwise epistasis testing. Nucleic Acids Research. doi:10.1093/nar/gkw347.
See Also
Examples
data(diabetes.geno)
# Please note that parameter B is recommended to be greater than 400.
# For high order interaction analysis (w.order > 2), it is recommended to use default n.sample.
hf1 <- hf(data = diabetes.geno, w.order = 1, B = 100)
hf2 <- hf(data = diabetes.geno, w.order = 2, B = 80)