Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuaSSE gives confusing error message when diffusion ommitted #9

Open
richfitz opened this issue Mar 17, 2014 · 0 comments
Open

QuaSSE gives confusing error message when diffusion ommitted #9

richfitz opened this issue Mar 17, 2014 · 0 comments

Comments

@richfitz
Copy link
Owner

Should just check number of parameters and avoid this error.

    library(diversitree)
    lambda <- function(x) sigmoid.x(x, 0.1, 0.2,  0, 2.5)
    mu <- function(x) constant.x(x, 0.03)
    char <- make.brownian.with.drift(0, 0.025)

    set.seed(1)
    phy <- tree.quasse(c(lambda, mu, char), max.taxa=15, x0=0,
                       single.lineage=FALSE, verbose=TRUE)

    lik <- make.quasse(phy, phy$tip.state, 0.5, constant.x, constant.x)
    p <- starting.point.quasse(phy, phy$tip.state)
    lik(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant