File: parameters.txt

package info (click to toggle)
bali-phy 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,392 kB
  • sloc: cpp: 120,442; xml: 13,966; haskell: 9,975; python: 2,936; yacc: 1,328; perl: 1,169; lex: 912; sh: 343; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 919 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Setting parameter values:

Models, functions and probability distributions all take named
parameters in BAli-Phy. Parameters are in given square brackets:

   Model(parameter1=value,parameter2~distribution]

Values are given with `=`, and priors are given with `~`.
A value or prior for a parameter must be given, unless the
model or function has a default value specified.

For example, the Tamura-Nei (tn93) model has 3 parameters, `kappaPur`,
`kappaPyr`, and `pi` with default priors.  Focusing just on the first
parameter, the following are the same:

     tn93
     tn93(kappaPur~logNormal(log(2),0.5))

It is also possible to specify parameter values by position only:

     tn93(2,~logNormal(log(1),0.5))

The parameter names, order, type and default values for any function
can be found by giving that function name to the `help` command.
For example `bali-phy help tn93` gives information on the tn93 model.