vaccine {DOVE}R Documentation

Specify Vaccination Variables and Entry Time

Description

This function is used in the model statements of dove() and dove2() to specify the vaccination time, vaccination status, and entry time.

Usage

vaccine(entry_time, vaccination_status, vaccination_time)

Arguments

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.

Details

For participants that were vaccinated, times must obey entry_time \le 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.

Value

This function is intended to be used only in the model statements of dove() and dove2(). The result, a matrix, is used internally.


[Package DOVE version 1.10 Index]