Function that computes the observable log-likelihood of the mixed LM model with discrete random effect in the latent model (internal use).

1 | ```
lk_obs_mixed(th, nla, nPiv, nPi, nPsi, S, yv, r, k1, k2)
``` |

`th` |
vector of parameters |

`nla` |
number of logits for the mass probability vector |

`nPiv` |
number of logits for the intial probabilities |

`nPi` |
number of logits for the transition probabilities |

`nPsi` |
number of logits for the conditional response probabilities |

`S` |
matrix of distinct response configurations |

`yv` |
corresponding vector of frequencies |

`r` |
number of response variables |

`k1` |
number of latent classes |

`k2` |
number of latent states |

`lk` |
log-likelihood |

`sc` |
score vector |

Francesco Bartolucci, Silvia Pandolfi - University of Perugia (IT)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.