Skip to content

Commit 3cd8cf3

Browse files
committed
update version nr
1 parent 9caa4a5 commit 3cd8cf3

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: secsse
22
Type: Package
33
Title: Several Examined and Concealed States-Dependent Speciation and
44
Extinction
5-
Version: 3.6.0
5+
Version: 3.6.1
66
License: GPL (>= 3) | file LICENSE
77
Authors@R: c(
88
person(given = "Leonel",

NEWS.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
# 3.6.1
2+
- added support for having a different number of concealed states compared to
3+
the number of observed states when creating a q_matrix using `q_doubletrans`.
4+
15
# 3.6.0
26
- changed the default integration method to "odeint::runge_kutta_cash_karp54",
37
although a bit slower, this method is more numerically stable.
48
- fixed lack of sorting of numeric traits in the function `q_doubletrans`
5-
- fixed an error in preparing the state matrices when NAs were present in the traits
6-
- ML and LL functions now optionally also return the root state, which in turn can be used to in `secsse_sim` as a starting point at the root / crown of the tree.
7-
- updated simulations to sample species using a binary search, instead of using stochastic acceptance
9+
- fixed an error in preparing the state matrices when NAs were present in the
10+
traits
11+
- ML and LL functions now optionally also return the root state, which in turn
12+
can be used to in `secsse_sim` as a starting point at the root / crown of the
13+
tree.
14+
- updated simulations to sample species using a binary search, instead of using
15+
stochastic acceptance
816
- better documentation of output of ML and LL functions.
917
# 3.5.0
1018
Version 3.5.0 uses a separate calculation for 1 - E, e.g. one minus the local

R/secsse_prep.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ create_q_matrix <- function(state_names,
145145
diff.conceal = FALSE) {
146146

147147
total_num_states <- length(state_names)
148-
if (total_num_states != num_concealed_states) {
149-
stop("number of concealed states has to be equal to the number of observed states")
150-
}
148+
151149
trans_matrix <- matrix(0, ncol = total_num_states,
152150
nrow = total_num_states)
153151

@@ -161,9 +159,11 @@ create_q_matrix <- function(state_names,
161159

162160
diag(trans_matrix) <- NA
163161

164-
trans_matrix <- secsse::q_doubletrans(traits = state_names,
165-
masterBlock = trans_matrix,
166-
diff.conceal = diff.conceal)
162+
trans_matrix <-
163+
secsse::q_doubletrans(traits = state_names,
164+
masterBlock = trans_matrix,
165+
diff.conceal = diff.conceal,
166+
num_concealed_states = num_concealed_states)
167167

168168
all_state_names <- get_state_names(state_names, num_concealed_states)
169169
colnames(trans_matrix) <- all_state_names

0 commit comments

Comments
 (0)