Learn R Programming

stagedtrees (version 2.1.0)

stages: 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).