R/lung.R

#' NCCTG Lung Cancer Data
#'
#' Survival in patients with advanced lung cancer from the North Central Cancer Treatment Group. Performance scores rate how well the patient can perform usual daily activities.
#'
#' 
#' @note This dataset is sourced from the survival package.
#' @seealso \code{\link[survival]{lung}} for the original dataset in the survival package
#' 
#' @format A data frame containing 228 observations on 10 variables.
#' \describe{
#'   \item{inst}{Institution code}
#'   \item{time}{Survival time in days}
#'   \item{status}{censoring status 1=censored, 2=dead}
#'   \item{age}{Age in years}
#'   \item{sex}{Male=1 Female=2}
#'   \item{ph.ecog}{ECOG performance score as rated by the physician. 0=asymptomatic, 1= symptomatic but completely ambulatory, 2= in bed < 50\% of the day, 3= in bed > 50\% of the day but not bedbound, 4 = bedbound}
#'   \item{ph.karno}{Karnofsky performance score (bad=0-good=100) rated by physician}
#'   \item{pat.karno}{Karnofsky performance score as rated by patient}
#'   \item{meal.cal}{Calories consumed at meals}
#'   \item{wt.loss}{Weight loss in last six months (pounds)}
#' }
#'
#'
#' @source Terry Therneau. (2021). survival: Survival Analysis. R package version 3.4-2. \url{https://CRAN.R-project.org/package=survival}
#'
#' 
#' @references 
#' 
#' \itemize{
#'   \item Loprinzi CL. Laurie JA. Wieand HS. Krook JE. Novotny PJ. Kugler JW. Bartel J. Law M. Bateman M. Klatt NE. et al. Prospective evaluation of prognostic variables from patient-completed questionnaires. North Central Cancer Treatment Group. Journal of Clinical Oncology. 12(3):601-7, 1994.
#' }
#' 
#' @examples
#' data(lung)
#' summary(lung)
#' @usage data(lung)
#' @name lung
#' @docType data
#' @keywords datasets
NULL

Try the StepReg package in your browser

Any scripts or data that you put into this service are public.

StepReg documentation built on May 14, 2026, 9:07 a.m.