I am a Rhmm user but a newbie in R programming so I am turning around with writing predict functions based on the functions in RHmm package. The package built for HMM model. My questions are to write function P(X_{T+h}=x|X_1,X_2,...,X_T) and P(C_T=i|X_1,X_2,...,X_T) where X_T are observations and C_T are Markov chain in Hidden Markov Model.
Can anyone help?
Thank you very much!