episode_prepare_data: Prepare data and select participants using given rules

View source: R/episodes.R

episode_prepare_dataR Documentation

Prepare data and select participants using given rules

Description

'episode_prepare_data' makes some checks in data, and apply selection rules by callng episode_select_participants.

Usage

episode_prepare_data(
  design,
  intake = NULL,
  weekly = NULL,
  env = NULL,
  keep.onset = FALSE
)

Arguments

design

episode design data structure (result of episode_design)

intake

data.frame intake data

weekly

data.frame weekly data

env

environment with intake & weekly data (alternative to provide them directly in existing env)

keep.onset

keep onset column if already exists

Details

To compute episode in a simple setting link{episode_build} would be more convinient to use (it will call this function)

The environment contains several data.frame()

participants

one row for each participants and rule results (TRUE/FALSE) for each participants, column "keep" indicate final state of participant

selections

count of selected participants at each step (after applying each rule)

intake

the intakes for selected participants

weekly

the weekly for selected participants

Value

environment environment containing selected data (weekly, intake, participants, selections)

See Also

Other episodes: episode_build(), episode_compute(), episode_design(), episode_fusion.simple_strategy(), episode_fusion.worst_strategy(), episode_fusion_strategy(), episode_fusion(), episode_select_participants(), episode_strategy()


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.