get_emission: Emission probability evaluation.

Description Usage Arguments Details Value See Also Examples

View source: R/get_emission.R

Description

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

Usage

1
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

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

huchaoran-lilly/niaidMI documentation built on Feb. 21, 2022, 3:29 p.m.