mvCharacterHistory - Character history move
| ctmc : | AbstractHomologousDiscreteCharacterData (<stochastic> pass by reference) |
| The PhyloCTMC variable. | |
| qmap_site : | RateGenerator (pass by reference) |
| Per-site rate generator. | |
| Default : NULL | |
| qmap_seq : | RateGeneratorSequence (pass by reference) |
| Per-sequence rate generator. | |
| Default : NULL | |
| lambda : | Probability (pass by value) |
| Tuning probability to propose new site history (has no effect if graph="cladogenetic" and proposal="rejection_shift"). | |
| Default : 1 | |
| graph : | String (pass by value) |
| The location(s) in a phylogeny where the move is placed | |
| Default : node | |
| Options : node|branch|cladogenetic|cladogenetic2|tip|root | |
| proposal : | String (pass by value) |
| The type of sampler | |
| Default : rejection | |
| Options : rejection|rejection_shift|uniformization | |
| weight : | RealPos (pass by value) |
| The weight determines the relative frequency with which this move will be attempted. For details, see the description of the 'moveschedule' parameter on the documentation page for 'mcmc()'. | |
| Default : 1 | |
| tuneTarget : | Probability (pass by value) |
| The acceptance probability targeted by auto-tuning (has no effect if graph="cladogenetic" and proposal="rejection_shift"). | |
| Default : 0.44 |
# The following example shows the set-up of character history
# moves when the CTMC distribution is used together with a
# trait evolution model (e.g, `dnPhyloOUSD`).
Q <- fnJC(2)
X ~ dnPhyloCTMCDASiteIID(tree, Q, branchRates=1, type="Standard", nSites=1)
moves.append( mvCharacterHistory(ctmc=X, qmap_site=Q, graph="root",
proposal="rejection", weight=10.0) )
moves.append( mvCharacterHistory(ctmc=X, qmap_site=Q, graph="node",
proposal="rejection", weight=10.0) )
moves.append( mvCharacterHistory(ctmc=X, qmap_site=Q, graph="branch",
proposal="rejection", weight=10.0) )
moves.append( mvCharacterHistory(ctmc=X, qmap_site=Q, graph="tip",
proposal="rejection", weight=10.0) )