Description Usage Arguments Value Author(s)
View source: R/00.Miscellaneous.R
Validate a given data frame for variability in the exposure variable and outcome variable. The exposure variable specified in expo_var
should have two values to make regression meaningful. Only one of out_var
and event_var
is required although both can be validated at the same time. Because the error raised can stop the simulation, it should be used within try
function.
1 | ValidateDf(df, expo_var, bin_var = NULL, event_var = NULL)
|
df |
data frame to be used in a regression analysis |
expo_var |
string for the exposure variable name |
bin_var |
string for the binary outcome variable name |
event_var |
string for the survival event indicator variable name (1 for event) |
the validated data frame if it is valid. Otherwise, an error is raised to stop estimation on invalid data.
Kazuki Yoshida
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.