cla_id_paramPos: Parameter structure setting for cla_secsse

Description Usage Arguments Value Examples

View source: R/secsse_utils.R

Description

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

Usage

1
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

1
2
3
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)

Example output



secsse documentation built on July 16, 2021, 9:06 a.m.