cla_id_paramPos: Parameter structure setting for cla_secsse

View source: R/secsse_utils.R

cla_id_paramPosR Documentation

Parameter structure setting for cla_secsse

Description

It sets the parameters (speciation, extinction and transition) ids. Needed for ML calculation with cladogenetic options (cla_secsse_ml)

Usage

cla_id_paramPos(traits, num_concealed_states)

Arguments

traits

vector with trait states, order of states must be the same as tree tips, for help, see vignette.

num_concealed_states

number of concealed states, generally equivalent to number of examined states.

Value

A list that includes the ids of the parameters for ML analysis.

Examples

traits <- sample(c(0,1,2), 45,replace = TRUE) #get some traits
num_concealed_states <- 3
param_posit <- cla_id_paramPos(traits,num_concealed_states)

secsse documentation built on July 9, 2023, 7:36 p.m.