necessary_causes {epicmodel} | R Documentation |
Extract necessary causes
Description
Necessary causes are component causes, which are part of every sufficient cause and, therefore, have to be present in order for the outcome to occur.
Usage
necessary_causes(scc, output = c("id", "desc", "desc_no_start"))
Arguments
scc |
An object of class |
output |
A single element of type character determining the type of output. Either |
Value
A character vector containing all necessary causes. Depending on the value of output
, the vector contains either step IDs
(output = "id"
), step descriptions (output = "desc"
), or step descriptions but with the "Start: " in the beginning removed
(output = "desc_no_start"
).
Examples
necessary_causes(scc_rain)
[Package epicmodel version 0.2.0 Index]