Description Usage Arguments Value
Samples both hidden states and emissions
1 | sample_XandY(rho, theta, M, L, sample_x0 = NULL)
|
rho, |
rathe of recombination between ajacent sites; affects transition rate of hidden states. |
theta |
Rate of mutation; affects distribution of Y|X. |
M |
number of hidden states of X. |
L |
desired length of sampled sequences. |
sample_x0 |
a function which generates samples the initial state of the hidden variables X. |
a list with names “X” and “Y”
X is a vector of length L
encoding the hidden states
Y is a vector of length L
encoding the emissions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.