get_emission {niaidMI}R Documentation

Emission probability evaluation.

Description

Creates emission probabilities from data. Generally for internal niaidMI package use only.

Usage

get_emission(wide, days)

Arguments

wide

Data in wide format (i.e., each day is a column).

days

Names of the columns that contain the score for each day.

Details

States for each patient/day in 'wide' may be the following:

Generally the user will not need to call this function directly because it is called by the 'impute' function.

Value

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.

See Also

impute

Examples

test <- sim_data(200)
Em <- get_emission(wide=test,days=paste0("D",1:28))

[Package niaidMI version 1.1.0 Index]