| data_mimicHeartSteps {MRTAnalysis} | R Documentation | 
A synthetic data set that mimics the HeartSteps V1 data structure to illustrate the use of [wcls()] function for continuous outcomes
Description
A synthetic data set that mimics the HeartSteps V1 data structure to illustrate the use of [wcls()] function for continuous outcomes
Usage
data_mimicHeartSteps
Format
a data frame with 7770 observations and 9 variables
- userid
- individual id number 
- time
- decision point index 
- day_in_study
- day in the study 
- logstep_30min
- proximal outcome: the step count in the 30 minutes following the current decision point (log-transformed) 
- logstep_30min_lag1
- proximal outcome at the previous decision point (lag-1 outcome): the step count in the 30 minutes following the previous decision point (log-transformed) 
- logstep_pre30min
- the step count in the 30 minutes prior to the current decision point (log-transformed); used as a control variable 
- is_at_home_or_work
- whether the individual is at home or work (=1) or at other locations (=0) at the current decision point 
- intervention
- whether the intervention is randomized to be delivered (=1) or not (=0) at the current decision point 
- rand_prob
- the randomization probability P(A=1) for the current decision point 
- availability
- whether the individual is available (=1) or not (=0) at the current decision point