stages: Stages of a variable

View source: R/1b-base-model-function.R

stagesR Documentation

Stages of a variable

Description

Obtain the stages of a given variable in a staged event tree object.

Usage

stages(object, var = NULL)

Arguments

object

an object of class sevt.

var

name of one variable in object.

Value

If var is specified, it returns a character vector with stage names for the given variable (that is object$stages[[var]]. Otherwise, If var is not specified, stages returns a list of character vectors containing the stages associated to each variable in the model (that is object$stages).


stagedtrees documentation built on April 29, 2022, 1:06 a.m.