GithubHelp home page GithubHelp logo

Comments (2)

coyotree avatar coyotree commented on July 24, 2024

Hello,

I am running into the same error. I am using version 2.1. If I just keep re-running it, it will manage to run for a period of time and then throw an error again. Would really like to use branch lengths in the prior but the errors worrying me. See below for a very long example of the output. Thanks for your help!

`Checking inputs for errors:...........
seems fine...

fit.branches$run(100000)
gen lnL prior alpha sig2 rtheta k .alpha .sig2 .theta birth.k D0.slid D1.slid death.k U0.slid U1.slid U2.slid
1000 -119.15 -61.41 1.93 3.64 2.21 10 0.53 0.40 0.68 0.12 1.00 0.60 0.78 1.00
....
7000 -118.00 -43.52 1.26 2.21 2.04 6 0.47 0.45 0.62 0.10 1.00 0.36 0.59 0.94 0.34 0.24
Error in sample.int(x, size, replace, prob) : NA in probability vector
fit.branches$run(100000)
gen lnL prior alpha sig2 rtheta k .alpha .sig2 .theta birth.k D0.slid D1.slid death.k U0.slid U1.slid U2.slid
8000 -117.02 -52.69 1.44 2.40 2.12 8 0.42 0.43 0.60 0.07 1.00 0.08 0.45 1.00 0.00 0.18
....
10000 -120.05 -49.49 1.58 3.53 1.82 7 0.45 0.42 0.59 0.07 1.00 0.15 0.45 0.99 0.17 0.12
Error in sample.int(x, size, replace, prob) : NA in probability vector
fit.branches$run(100000)
gen lnL prior alpha sig2 rtheta k .alpha .sig2 .theta birth.k D0.slid D1.slid death.k U0.slid U1.slid U2.slid
11000 -126.16 -52.32 0.45 1.26 2.24 9 0.45 0.44 0.70 0.14 1.00 0.00 0.38 1.00
......
72000 -115.63 -54.08 0.14 0.22 2.31 8 0.48 0.48 0.68 0.10 0.95 0.30 0.60 0.00 0.94 0.31 0.25
Error in if (runif(1) < exp(nll - oll + pr2 - pr1 + hr)) { :
missing value where TRUE/FALSE needed
fit.branches$run(100000)
Error in sample.int(x, size, replace, prob) : NA in probability vector
fit.branches$run(100000)
Error in sample.int(x, size, replace, prob) : NA in probability vector
fit.branches$run(100000)
gen lnL prior alpha sig2 rtheta k .alpha .sig2 .theta birth.k D0.slid D1.slid death.k U0.slid U2.slid
73000 -125.83 -47.44 0.07 0.17 2.01 8 0.62 0.29 0.88 0.05 1.00 0.00 0.60 1.00 0.00
74000 -123.76 -45.19 0.34 0.61 2.23 8 0.46 0.54 0.75 0.10 1.00 0.38 0.62 0.92 0.40 0.04
75000 -117.79 -51.09 1.56 2.11 2.20 8 0.44 0.47 0.70 0.10 1.00 0.25 0.54 0.93 0.18 0.08
Error in if (runif(1) < exp(nll - oll + pr2 - pr1 + hr)) { :
missing value where TRUE/FALSE needed
fit.branches$run(100000)
gen lnL prior alpha sig2 rtheta k .alpha .sig2 .theta birth.k D0.slid D1.slid death.k U0.slid U1.slid U2.slid
76000 -117.55 -68.06 3.31 6.71 1.80 12 0.34 0.54 0.62 0.13 1.00 0.11 0.55 1.00 0.50 0.25
....
96000 -123.52 -57.11 0.06 0.09 2.20 10 0.48 0.48 0.65 0.09 0.98 0.31 0.58 0.95 0.33 0.19
Error in sample.int(x, size, replace, prob) : NA in probability vector`

from bayou.

uyedaj avatar uyedaj commented on July 24, 2024

Resolved this issue in version 2.1.3 (hopefully)

from bayou.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.