Learn R Programming

icmstate (version 0.2.0)

direct_from_observed_intervals: Translate observed transition intervals into direct transition intervals

Description

Given observed transition intervals, determine the "worst" (least informative) possible direct transition intervals that could have occurred to form this sample.

Usage

direct_from_observed_intervals(observed_intervals, tmat, gd)

Value

A data.frame with the following named columns

entry_time:

Time of entry into "from" state;

time_from:

Last time subject(id) was seen in state "from";

time_to:

First time subject(id) was seen in state "to";

from:

State from which a transition was observed;

to:

State to which the transition was observed;

id:

Subject identifier;

For right-censored observations, entry_time denotes the first time seen in the censored state, time_from the last time seen in the censored state, time_to is Inf, from the censored state and to is NA.

Arguments

observed_intervals

Output from get_trans_intervals.

tmat

A transition matrix as created by transMat

gd

A data.frame with the following named columns

id:

Subject idenitifier;

state:

State at which the subject is observed at time;

time:

Time at which the subject is observed;

The true transition time between states is then interval censored between the times.