watson_segment.Rd
Dr. James H. Watson was Sherlock's friend, flatmate, and assistant. He often
contributed to Sherlock's work, usually by accompanying him in the field and
providing advice that could guide Sherlock towards a solution to the case.
Within sherlock's causal segmentation framework, watson_segment
mirrors Dr. Watson's role by assigning a treatment rule after Sherlock has
completed a preliminary consultation via sherlock_calculate
.
The output is a slightly augmented version of the data structure produced by
sherlock_calculate
; however, this step is necessary. After Dr.
Watson has helped Sherlock in finalizing the segmentation analysis, the
segmentation quality may be evaluated via mycroft_assess
.
watson_segment(data_with_consult, segment_fun, ..., type = c("inferential", "analytic"))
data_with_consult | A |
---|---|
segment_fun | A particular choice of function for the assignment of a
treatment rule to a segment based on a specified threshold or constraint.
For details on these, consult the documentation in |
... | Additional arguments passed to |
type | A
|