get_emission | R Documentation |
Creates emission probabilities from data. Generally for internal niaidMI package use only.
get_emission(wide, days)
wide |
Data in wide format (i.e., each day is a column). |
days |
Names of the columns that contain the score for each day. |
States for each patient/day in 'wide' may be the following:
Not missing:An integer from 1 to 8.
Missing:NA
Partially Missing: Range which may be code as a characters string such as '[1,7]' or '[1,2]'. Such a character string indicates that while the actual value is unknown, it is known that the value falls within the specified range.
Generally the user will not need to call this function directly because it is called by the 'impute' function.
Creates a 3 dimensional array that is "number of patients" x "number of days" x "8 NIAID stats." This array contains only 1 or 0 for each entry indicating if the state for a given day and individual is consistent with the data.
impute
test <- sim_data(200) Em <- get_emission(wide=test,days=paste0("D",1:28))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.