round_1: Probability of each state in the first round

Description Usage Arguments Value

View source: R/code.R

Description

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

Usage

1
round_1(m1, m2)(i,h)

Arguments

m1

vector of coefficients of multinomial regression for subjects who attended one screening round. In this regression variable states (screening results) is regressed on 1.

m2

vector of coeffiecient of logistic regression considering round 1 of all subjects who attanded more than one round. In this regression variable states (screening results) is regressed on censoring time.

i

state which 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 which represents the probability of a specific state in the first round.


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