Description Usage Arguments Value See Also Examples
This function calculates and permutes GLM-based score statistics.
1 | perm_score(Y, X, binary = FALSE, cov = NULL, nperm = 1000, seed = NULL)
|
Y |
Response Variable. A vector or length |
X |
Explanatory Variables to be tested. A matrix with dimensions |
binary |
Indicator of whether |
cov |
Covariates. A matrix with dimensions |
nperm |
Number of permutations. Default is |
seed |
Specify the seed for permutations. |
A list object.
Score statistics. The first column contains the original data.
P-values of two-tailed score tests; can be further used by AF_combine function.
Left-side P-values of one-tailed score tests; can be further used by AF_combine function.
1 2 3 4 | Y <- ar_dense$trait
X <- ar_dense$methyl
result <- perm_score(Y, X, binary = TRUE, nperm = 100)
names(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.