Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibleStates/sanitize Interaction Is Questionable #213

Open
rballant01 opened this issue Feb 15, 2023 · 0 comments
Open

possibleStates/sanitize Interaction Is Questionable #213

rballant01 opened this issue Feb 15, 2023 · 0 comments

Comments

@rballant01
Copy link

If possibleStates is the superset of states observed in my sequence, and sanitize is TRUE, it seems that both createSequenceMatrix() and markovchainFit() both set row probabilities to 1/length(possibleStates). Is that correct? sanitize seems to force all unobserved states to communicate equally with observed states. That's not supported by my data, at least.

Rather, should it be such that, for unobserved states, the diagonal is set to 1 thereby satisfying the requirement of the new() function, i.e., that row probabilities should sum to 1? I don't think this needs code to explain but let me know if needed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant