IncidenceDailyRS2014 | R Documentation |
Incidence estimator using rs2014 method implemented using daily agregatation
Incidence estimator using rs2014 method implemented using daily agregatation
Input:
Input data are expected to have some columns & some fixes. They are loaded and prepared using load_results_for_incidence
Parameters:
Number of days form his first survey befotre to include a participant (not compatible with ignore.first)
Ignore first rule only for new participant (uses intake$first.season column
should exclude syndrom if same episode is on (partcipant still active)
max delay to exclude syndrom if same (not excluded if over this delay)
max delay between 2 surveys (in weeks)
Number of week before each computed week to count active participants
Number of week after each computed week to count active participants
min number of surveys for each participant (not active if less)
Use mean number of active participant over the windows [active.day.before, active.day.after]
weekly
weekly data (loaded using load_results_for_incidence
)
intake
intake data (loaded using load_results_for_incidence
)
participant
data.frame() with all available participants and commputed criterias used during computation
params
parameters for computation
syndromes
character vector of column names containing syndromes classification for each weekly
profiler
profiler
verbose
logical show verbose message
design
design stratification from design_incidence
output
vector of character, see IncidenceRS2014
new()
instanciate object
IncidenceDailyRS2014$new( weekly, intake, syndromes, params, design, output = c("inc") )
weekly
data
intake
intake data
syndromes
syndromes column names in weekly
params
list of parameters for computing
design
design_incidence
output
list of output types to compute
syndroms
compatibility
prepare()
Prepare data before to compute Prepare participants data to be able to apply selection rules
IncidenceDailyRS2014$prepare()
compute_date()
Internal function Estimate incidence with rs2014 method for a given date
IncidenceDailyRS2014$compute_date(date)
date
date to compute
compute()
Compute weekly incidence for all requested weeks Apply the full algorithm for rs2014 incidence computation prepare data and then compute for each week by calling estimate_incidence_rs2014_week
IncidenceDailyRS2014$compute(dates = NULL, verbose = T, progress = T)
dates
dates to compute, if NULL will compute on all dates available in weekly data
verbose
show verbose messages if TRUE
progress
show progress
clone()
The objects of this class are cloneable with this method.
IncidenceDailyRS2014$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.