View source: R/hmm_estimates.R
initial_est | R Documentation |
Commpute initial state probabilites
initial_est(state_prob, by_factor, subset = NULL)
state_prob |
An |
by_factor |
A vector of factors (link + time bin) of size |
subset |
A vector indexing the rows of |
An m x Q
matrix of probabilites for the m levels of by_factor
.
Woodard, D., Nogin, G., Koch, P., Racz, D., Goldszmidt, M., Horvitz, E., 2017. Predicting travel time reliability using mobile phone GPS data. Transportation Research Part C, 75, 30-44.
## Not run: x = runif(10) x = cbind(x, 1-x) initial_est(x, factor(sample(c("A", "B"), 10, replace=TRUE))) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.