file.list {samplesizelogisticcasecontrol} | R Documentation |
List to describe the covariate and exposure data
Description
The list to describe the covariate and exposure data for the data
option.
Format
The format is: List of 7
- file
Data file containing the confounders and exposure variables. No default.
- exposure
Name or column number in
file
for the exposure variable. This can also be a vector giving the columns to form an interaction variable (see details). No default.- covars
Character vector of variables names or numeric vector of column numbers in
file
that will be confounders. These variables must be numeric. The length and order of thelogOR
argument must match the length and order of c(covars
,exposure
). The default is NULL.- header
0 or 1 if
file
has the first row as variable names. The default is determined from the first line of thefile
.- delimiter
The delimiter in
file
. The default is determined from the first two lines of thefile
.- in.miss
Vector of character strings to define the missing values. This option corresponds to the option
na.strings
inread.table()
. The default is "NA".- subsetData
List of sublists to subset the data. Each sublist should contain the names "var", "operator" and "value" corresponding to a variable name, operator and values of the variable. Multiple sublists are logically connected by the AND operator. For example,
subsetData=list(list(var="GENDER", operator="==", value="MALE"))
will only include subjects with the string "MALE" for the GENDER variable.
subsetData=list(list(var="AGE", operator=">", value=50),
list(var="STUDY", operator="%in%", value=c("A", "B", "C")))
will include subjects with AGE > 50 AND in STUDY A, B or C. The default is NULL.
Details
In this list, file
and exposure
must be specified. If exposure
is a vector
of column names or column numbers, then an exposure variable will be created by multipling the columns
defined in the vector to form the interaction variable. Thus, the columns must be numeric variables.
In this case, the length and order of logOR
must match the length and order of
c(covars
, <new interaction variable>).