get_emission: Emission probability evaluation.

View source: R/get_emission.R

get_emissionR 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:

  • 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.

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))

niaidMI documentation built on March 18, 2022, 7:26 p.m.