Sherlock Holmes was a consulting detective who had spectacular powers of
deduction and logical reasoning. Within sherlock's causal segmentation
framework, sherlock_calculate
takes data from a segmentation "case",
the roles of the different variables, and specifications for assessing the
conditional treatment effects required for deriving a segmentation. Being
the workhorse, this function is the most demanding, as it computes all of
the nuisance parameters required for subsequent analyses. The complementary
functions watson_segment
and mycroft_assess
can
be used once Sherlock has consulted on the causal segmentation case.
1 2 3 4 | sherlock_calculate(data_from_case, baseline, exposure, outcome, segment_by,
ids = NULL, treatment_cost = NULL, cv_folds = 5L,
split_type = c("inner", "outer"), ps_learner, or_learner, cate_learner,
use_cv_selector = FALSE)
|
data_from_case |
Rectangular input data, whether a |
baseline |
A |
exposure |
A |
outcome |
A |
segment_by |
A |
ids |
A |
treatment_cost |
A |
cv_folds |
A |
split_type |
A |
ps_learner |
Either an instantiated learner object (class inheriting
from |
or_learner |
Either an instantiated learner object (class inheriting
from |
cate_learner |
Either an instantiated learner object (class inheriting
from |
use_cv_selector |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.