Theta_hat: Compute Theta_hat statistic for a dataset

Description Usage Arguments Value Examples

View source: R/Theta.R

Description

This function allows you to express your love of cats.

Usage

1
Theta_hat(surv_data)

Arguments

surv_data

A data.frame (see the example)

Value

An object with the statistic

Examples

1
2
3
4
5
6
7
8
9
require(survival)
surv_data = with(subset(survival::lung,ph.ecog %in% 0:2),
data.frame(population = sex,
           censor = as.numeric(status==1),
           time = time, cohort = ph.ecog ))
out = Theta_hat(surv_data)
print(out)
print(confint(out))
print(pvalue.Theta_hat(out))

joshchang/calonesurv documentation built on May 17, 2019, 12:02 p.m.