Learn R Programming

epicmodel (version 0.2.1)

necessary_causes: 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"))

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").

Arguments

scc

An object of class epicmodel_scc.

output

A single element of type character determining the type of output. Either id (default), desc, or desc_no_start. See section "Value" below for a description of the output.

Examples

Run this code
necessary_causes(scc_rain)

Run the code above in your browser using DataLab