round_1_pa: Probability of each state in the first round.

Description Usage Arguments Value

View source: R/code.R

Description

A function for computing the probability of each state in the first round which depends on the censoring time.

Usage

1
round_1_pa (m1_pa, m2_pa)(i,h)

Arguments

m1_pa

A vector containing the coefficients of multinomial regression cosidering subjects who attended only one round. In this regression the result of screening (states) is regressed on 1.

m2_pa

A vector containing the coefficients of logistic regression considering the first round of all subjects who attended more than one rounds. In this regression the result of screening (states) is regressed on total number of rounds attended (censoring time).

i

State that can be 0 (true negative), 1 (false positive) or 2 ( competing event).

h

total number of screening round attended.

Value

A numeric value between 0 and 1 (probability) which represtns the probability of an specific state in the first round.


kgolmakani/cRisk documentation built on May 4, 2019, 6:30 a.m.