beast-dev / beast-mcmc

Bayesian Evolutionary Analysis Sampling Trees
http://beast.community
GNU Lesser General Public License v2.1
192 stars 73 forks source link

Truncated normals not working as priors #1036

Closed rambaut closed 6 years ago

rambaut commented 6 years ago

Generating a truncated normal density as a prior in BEAUti results in this:

                <trancated lower="5.0" upper="75.0">
                    <normalPrior mean="32.0" stdev="6.5">
                        <statistic idref="tmrca(calibration)"/>
                    </normalPrior>
                </trancated>

When running this, the value can go outside the bounds defined by the truncation.

-> Note the misspelt trancated - but this is misspelt in the parser too so is probably not the issue.

rambaut commented 6 years ago

Wasn't extracting the data from the internal density.