xlm: xlm

Description Usage Arguments Value Examples

Description

Performs a singular linear regression or binary outcomes association study. It requires you to specify the exact column variable and other permutation details. It does a lot of blind analysis and requires the xwas function to determine other information such as sanity checking around input arguments.

Usage

1
2
xlm(data, depvar, timevar = NULL, varname = NULL, adjvars = c(),
  design = NULL, permute = 0, categorical = 0, verbose = TRUE)

Arguments

data

is a data.frame containing the data to perform analysis on.

depvar

a character vector with a column name for the dependent variable.

timevar

is a character vector with the column name for the time variable in survival analysis.

varname

a character vector with a column name for the independent variable.

adjvars

a list of variables to adjust for in the regression.

design

is an optional survey::svydesign object for weighted analysis.

permute

is an optional parameter of how many permutations to perform in the bootstrap.

categorical

is a binary option representing whether or not the variable is categorical.

verbose

is a boolean that determines if we print extra information. Not recommend for an XWAS, only one off analyses.

Value

a data.frame object representing the regression.

Examples

1
2
3
4
5
## Not run: 
xlm()
xlm(data=nhanes, depvar="LBXGLU", varname="BMXBMI", adjvars=c("RIDAGEYR", "female"))

## End(Not run)

chiragjp/xwas documentation built on May 13, 2019, 5:27 p.m.