Description Usage Arguments Value

View source: R/label_switching.R

Label switching

1 | ```
label_switch(RT, s, n, lambda, P)
``` |

`RT` |
counts for each simulated sequnce |

`s` |
current segmentation sequence |

`n` |
length of sequence |

`lambda` |
transition matrix for hidden sequence |

`P` |
array of transition matrices for observed sequence |

`RT` |
counts |

`s` |
segmentation after label switching corrected for |

`P ` |
tranition matrix P after label switching corrected for |

`lambda` |
trabsition matric lambda after label switching corrected for |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.