Odds Ratio Table by Time Point
Creates an OR table for each time point of data given, initially applied to any grouping variable (particularly hour/time of day).
circ_odds(data, time, outcome, covar)
data |
Dataframe containing subsequent columns |
time |
Column name that contains the grouping variable of time |
outcome |
Column name that identifies the per-row outcome, binary |
covar |
Vector of independent variables names. First variable needs to be exposure. |
This function creates an OR table based on the covariate names supplied. It requires that there is an appropriate outcome variable selected. It performs a logistic regression. This model does not allow for conditioning variables (yet).
A data frame of odds ratios
# Data data(twins) # Create odds ratio tables by hour of day for covariate of interest ot <- circ_odds(twins, "hour", "sad_bin", "rDYX")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.