vaccine | R Documentation |
This function is used in the model statements of dove() and dove2() to specify the vaccination time, vaccination status, and entry time.
vaccine(entry_time, vaccination_status, vaccination_time)
entry_time |
The variable for the time when the participant enters the trial. Entry times must be non-negative and complete. |
vaccination_status |
The variable indicating the vaccination status: 1 = vaccinated; 0 = not vaccinated. Vaccination status must be binary, integer (or be able to be cast as integer without loss of information), and complete. |
vaccination_time |
The variable for the time when vaccination takes place. Vaccination time must be non-negative for vaccinated participants and can be any non-negative value, NA or Inf if a participant was not vaccinated during the trial. |
For participants that were vaccinated, times must obey entry_time ≤ vaccination_time. If a case is found to violate this relationship, its entry_time is set to NA and it is removed from the analysis.
This function is intended to be used only in the model statements of dove() and dove2(). The result, a matrix, is used internally.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.