Description Usage Arguments Value Examples
View source: R/LogisticRegression.R
A Function to perform logistic regression analysis given a case/control phenotype using PLINK 1.9.
1 2 3 4 5 6 7 8 9 |
input.dir |
[character] The full absolute path to the directory containing the training and test dataset. If |
output.dir |
[character] The full absolute path where the result will be written to. If |
genotype |
[character] The prefix of PLINK binary files (bed/bim/fam). |
phenotype |
[character] To specify an alternate phenotype for the logistic regression analysis using the " |
covar.number |
[vector] To specify a subset of column numbers of covariates to load from |
plink.path |
[character] The full absolute path to the PLINK executable file. The executable to run is path/to/plink.exe if you are on a Windows operating system, for Unix-like operating system this is path/to/plink. If |
verbose |
[logical] If TRUE, the PLINK log, error, and warning information are printed to standard out. The default value is TRUE. |
plink.lr
returns a data frame with the results of logistic regression analysis derived from PLINK.
1 2 3 4 5 6 7 8 9 10 11 12 13 | input.dir <- system.file("extdata", package="pv")
output.dir <- system.file("extdata", package="pv")
path2plink <- '/path/to/plink'
## Not run:
lr.result <- plink.lr(input.dir = input.dir,
output.dir = output.dir,
genotype = "train",
phenotype = "train.phenotypes.txt",
covar.number = c(2, 3),
plink.path = path2plink,
verbose = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.