Package QualInt. February 19, 2015

Similar documents
Package appnn. R topics documented: July 12, 2015

Package speff2trial. February 20, 2015

Package p3state.msm. R topics documented: February 20, 2015

Package ORIClust. February 19, 2015

Package prognosticroc

Package singlecase. April 19, 2009

Package AbsFilterGSEA

Package frailtyhl. February 19, 2015

Package ordibreadth. R topics documented: December 4, Type Package Title Ordinated Diet Breadth Version 1.0 Date Author James Fordyce

Package nopaco. R topics documented: April 13, Type Package Title Non-Parametric Concordance Coefficient Version 1.0.

Package HAP.ROR. R topics documented: February 19, 2015

Package citccmst. February 19, 2015

Package CompareTests

Package xseq. R topics documented: September 11, 2015

Package mediation. September 18, 2009

Package rvtdt. February 20, rvtdt... 1 rvtdt.example... 3 rvtdts... 3 TrendWeights Index 6. population control weighted rare-varaints TDT

Package wally. May 25, Type Package

Package propoverlap. R topics documented: February 20, Type Package

Package SAMURAI. February 19, 2015

Package inctools. January 3, 2018

Package TEQR. R topics documented: February 5, Version Date Title Target Equivalence Range Design Author M.

Package ExactCIdiff. February 15, 2013

Package MethPed. September 1, 2018

Package longroc. November 20, 2017

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

Package ClusteredMutations

Package cssam. February 19, 2015

Binary Diagnostic Tests Paired Samples

Package GANPAdata. February 19, 2015

Package noia. February 20, 2015

Package ICCbin. November 14, 2017

Package seqdesign. April 27, Version 1.1 Date

Package tumgr. February 4, 2016

A Quick-Start Guide for rseqdiff

Package ega. March 21, 2017

Package sbpiper. April 20, 2018

Package influence.me

Individualized Treatment Effects Using a Non-parametric Bayesian Approach

Package mdsdt. March 12, 2016

Package clust.bin.pair

Package BCRA. April 25, 2018

Binary Diagnostic Tests Two Independent Samples

Package Actigraphy. R topics documented: January 15, Type Package Title Actigraphy Data Analysis Version 1.3.

POST GRADUATE DIPLOMA IN BIOETHICS (PGDBE) Term-End Examination June, 2016 MHS-014 : RESEARCH METHODOLOGY

Regression Output: Table 5 (Random Effects OLS) Random-effects GLS regression Number of obs = 1806 Group variable (i): subject Number of groups = 70

Package memapp. R topics documented: June 2, Version 2.10 Date

Review: Logistic regression, Gaussian naïve Bayes, linear regression, and their connections

Package CorMut. January 21, 2019

Package xmeta. August 16, 2017

Package StepReg. November 3, 2017

SUPPLEMENTARY MATERIAL

Package BUScorrect. September 16, 2018

Package preference. May 8, 2018

Package Interpol. R topics documented: February 19, Type Package. Title Interpolation of amino acid sequences. Version

Package PELVIS. R topics documented: December 18, Type Package

The SAS SUBTYPE Macro

Reflection Questions for Math 58B

Package inote. June 8, 2017

Research Methods in Forest Sciences: Learning Diary. Yoko Lu December Research process

Name: emergency please discuss this with the exam proctor. 6. Vanderbilt s academic honor code applies.

Package MSstatsTMT. February 26, Title Protein Significance Analysis in shotgun mass spectrometry-based

Package EpiEstim. R topics documented: February 19, Version Date 2013/03/08

Bayesian Dose Escalation Study Design with Consideration of Late Onset Toxicity. Li Liu, Glen Laird, Lei Gao Biostatistics Sanofi

Prediction Model For Risk Of Breast Cancer Considering Interaction Between The Risk Factors

Biostatistics II

Analysis of Rheumatoid Arthritis Data using Logistic Regression and Penalized Approach

Package bionetdata. R topics documented: February 19, Type Package Title Biological and chemical data networks Version 1.0.

Package ncar. July 20, 2018

CSE 258 Lecture 1.5. Web Mining and Recommender Systems. Supervised learning Regression

R documentation. of GSCA/man/GSCA-package.Rd etc. June 8, GSCA-package. LungCancer metadi... 3 plotmnw... 5 plotnw... 6 singledc...

Regina Louie, Syntex Research, Palo Alto, California Alex Y aroshinsky, Syntex Research, Palo Alto, California

BMI 541/699 Lecture 16

Package CTT. February 4, 2018

Package NonCompart. August 16, 2017

GridMAT-MD: A Grid-based Membrane Analysis Tool for use with Molecular Dynamics

Unit 1 Exploring and Understanding Data

F i t p o w e r 5 a n d p o i s s o n A g e- Period-Cohort models for prediction of cancer incidence

Biostatistics 2 - Correlation and Risk

Package Clonality. June 12, 2018

User Guide. Association analysis. Input

Package RNAsmc. December 11, 2018

Package flowtype. R topics documented: July 18, Type Package. Title Phenotyping Flow Cytometry Assays. Version

Age (continuous) Gender (0=Male, 1=Female) SES (1=Low, 2=Medium, 3=High) Prior Victimization (0= Not Victimized, 1=Victimized)

Package CorMut. August 2, 2013

Applied Medical. Statistics Using SAS. Geoff Der. Brian S. Everitt. CRC Press. Taylor Si Francis Croup. Taylor & Francis Croup, an informa business

Statistical Methods for the Evaluation of Treatment Effectiveness in the Presence of Competing Risks

Package DeconRNASeq. November 19, 2017

The Statistical Analysis of Failure Time Data

Numerical Integration of Bivariate Gaussian Distribution

1. Objective: analyzing CD4 counts data using GEE marginal model and random effects model. Demonstrate the analysis using SAS and STATA.

Meta Analysis. David R Urbach MD MSc Outcomes Research Course December 4, 2014

Today: Binomial response variable with an explanatory variable on an ordinal (rank) scale.

Package IMAS. March 10, 2019

Package asymptest. May 10, 2018

Landmarking, immortal time bias and. Dynamic prediction

Lecture #4: Overabundance Analysis and Class Discovery

Package diggitdata. April 11, 2019

CRITERIA FOR USE. A GRAPHICAL EXPLANATION OF BI-VARIATE (2 VARIABLE) REGRESSION ANALYSISSys

Transcription:

Title Test for Qualitative Interactions Version 1.0.0 Package QualInt February 19, 2015 Author Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer Lixi Yu <lixi-yu@uiowa.edu> Description Used for testing for qualitative interactions between treatment effects and patient subgroups. Here the term treatment effect means a comparison result of two treatments within each patient subgroup. Models included in this package are Gaussian, binomial and Cox models. Methods included here are interval based graphical approach and Gail Simon LRT. Depends survival, ggplot2 License GPL-2 LazyLoad yes NeedsCompilation no Repository CRAN Date/Publication 2014-10-13 09:58:21 R topics documented: QualInt-package....................................... 2 coef.qualint......................................... 3 ibga............................................. 4 plot.qualint......................................... 5 print.qualint......................................... 7 qualint............................................ 8 qualval............................................ 11 Index 14 1

2 QualInt-package QualInt-package R-package for qualitative interaction test Description Details Test for qualitative interactions between treatment effects and patient subgroups for continuous, binary and suvival responses. The term treatment effect means a comparison result between two treatments within each patient subgroup. Package: QualInt Type: Package Version: 1.0.0 Date: 2014-10-13 License: GPL-2 This package could be used to calculate the pvalue and power for qualitative interaction testing. Two testing methods are included in the package, which are Interval Based Graphical Approach and Gail Simon Likelihood Ratio Test. For a complete list of all the functions available in this package with individual help pages, use library(help = "QualInt") Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. Examples test9 <- qualval(effect = c(1.0, 0.5, -2.0), se = c(0.86, 0.64, 0.32)) print(test9) plot(test9) #### Continuous #### ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6),

coef.qualint 3 subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) test2 <- qualint(ynorm, trtment, subgrp, test = "LRT") plot(test1) print(test1) coef(test1) ibga(test1) #### Binary #### ybin <- sample(c(0, 1), 300, prob = c(0.3, 0.7), test4 <- qualint(ybin, trtment, subgrp, type = "binary") #### Survival #### time <- rpois(300, 200) censor <- sample(c(0, 1), 300, prob = c(0.7, 0.3), test6 <- qualint(surv(time, censor), trtment, subgrp) coef.qualint Extract estimation results from a "qualint" object Description Similar to other coef methods, this function extracts the estimation results from an "qualint" object. Usage ## S3 method for class qualint coef(object,...) Arguments object a qualint object... not used. Additional print arguments Details This function extracts the results related with estimating results of the interaction test from a "qualint" object. It returns a matrix which contains the estimating results of the treatment effects which will used directly in the testing process later. FOr continuous responses, it is the mean difference. For binary responses, it is the risk difference, log relative risk or log odds ratio. For survival responses, it it the log hazard ratio.

4 ibga Value A numeric matrix (see above). For type = "continuous", it is the estimation results for mean difference. For type = "binary", it is for risk difference, log relative risk or log odds ration. For type = "survival", it is for log hazard ratio. Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also print.qualint, plot.qualint Examples ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6), subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) coef(test1) ibga Extract IBGA results from a "qualint" object Description Usage Extract the testing results of IBGA from a "qualint" object. Only available when test = "IBGA". Produce an error signal if test = "LRT". ibga(x) Arguments x a qualint object

plot.qualint 5 Details This function extracts the results related with the IBGA graph from a "qualint" object, which is a matrix which contains the estimating and testing information of the treatment effects (see examples). FOr continuous responses, it is the mean difference. For binary responses, it is the risk difference, relative risk or odds ratio. For survival responses, it it hazard ratio. Value A numeric matrix depending on scale (see above). Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also coef.qualint Examples ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6), subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) ibga(test1) plot.qualint Plot the interval based graph from a "qualint" object Description Produce an interval based graph from an "qualint" object. Only available when test = "IBGA". Produce an error signal if test = "LRT".

6 plot.qualint Usage ## S3 method for class qualint plot(x,...) Arguments x a qualint object... additional coef arguments Details Differect scales are used here for different types of responses. For continous one, the mean differece is plotted. For binary one, one from the risk difference, relative risk or odds ratio will be plotted, depending on user s choice. For survival responses, the hazard ratio is plotted. Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also print.qualint, coef.qualint Examples ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6), subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) plot(test1)

print.qualint 7 print.qualint Print a summary of a "qualint" object Description Similar to other print methods, this function prints a summary from an "qualint" object. Usage ## S3 method for class qualint print(x, digits = max(3, getoption("digits") - 3),...) Arguments x a qualint object digits significant digits in printout... not used. Additional print arguments Details This function prints the important information in a format that s easier for people to understand from a "qualint" object (see examples). Value A summary of the testing results (see above). Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also coef.qualint, plot.qualint

8 qualint Examples ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6), subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) print(test1) qualint Test for qualitative interactions from complete data Description Usage Test for qualitative interactions between treatment effects and patient subgroups. Perform the testing based on the estimated treatment effects and their standard errors. Output all the results related with qualitative interaction tests as a "qualint" object, which includes all the results related with the testing. Two common tests for qualitative interactions are included: IBGA and LRT, among which IBGA is the default. Useful for three types of responses: continuous, binary and survival data. Complete data is needed as input. qualint(y, trtment, subgrp, type = c("continuous", "binary", "survival"), scale = c("md", "RD", "RR", "OR", "HR"), test = c("ibga", "LRT"), alpha = 0.05, plotout = FALSE) Arguments y trtment subgrp type scale response variable. A numeric vector for type = "continuous". A numeric vector with values equal to either 1 or 0 for type = "binary". A "Surv" object for type = "survival" (The function Surv() in package survival produces such a matrix). treatment variable. A vector with different values representing different treatment groups. Each element corresponds to the treatment the patient received. Should have the same length as y. patient subgroup variable. A vector with the same length as y and trtment, with different values representing different patient subgroups. Each element corresponds to the patient subgroup the patient belongs to. response type (see above). Three types of responses are included right now: continuous, binary, survival. By default, it assumes the response variable is continuous. the scale type for treatment effects. When type = "continuous", scale = "MD" by default (mean difference). When type = "binary", three types of scales are available, which are scale = "RD" (risk difference), "RR" (relative risk) or "OR" (odds ratio). When type = "survival", scale = "HR" (hazard ratio).

qualint 9 test alpha plotout testing method. Choose either "IBGA" (interval based graphical approach) or "LRT" (Gail Simon likelihood ratio test). significance level. The type I error for qualitative interaction tesing. The default is 0.05. whether output the plot or not for test = "IBGA". There is no plot output for test = "LRT". Details Value In order to test for qualitative interactions between treatment effects and patient subgoups, estimated treatment effects and their standard errors are necessary. For continuous responses, mean difference is derived as the meansure of treatment effects with with its standard error equal to sd 2 1 /n 1 + sd 2 2 /n 2. For binary responses, three different scales are available to measure the treatment effects: risk difference, log relative risk and log odds ratio. Their standard errors could easily obtained according to formulas. For survival responses, the log hazard ratio is used to evaluate the treatment effects. The cox regression model is used in this function to estimate the log hazard ratio and also its standard error. For the IBGA graph, however, we plot it according to common measures of treatment effects instead of the one used in the calculation. For continuous responses, mean difference is used since it is the common treament effect scale. For binary responses, the function plots risk difference, relative risk, and odds ratio directly. For survival responses, hazard ratios are plotted instead of log hazard ratios. In the power calculation, this function assumes the estimated treatment effect scale and its standard errors are equal to the true values. For IBGA method, an explicit formula is available, so it is very easy to calculate the power. For LRT, a simulation is used to assess the power since no explicit formula is available. An object with S3 class "qualint". call n type alpha treatment reference nsbp subgroup scale effect se LowerCI UpperCI test the call that produces this object. the sample size for each treatment in each subgroup. response type. significance level for the test. treatment factors. reference treatment used for the comparison. the number of patient subgroups. subgroup factors. the scale type for treatment effects (see above). estimated treatment effects. standard error of treatment effects estimators. the lower limit of the confidence interval. the upper limit of the confidence interval. testing method used here, either "IBGA" or "LRT".

10 qualint index cvalue LowerTI UpperTI pvalue power nobs missing the testing index used only for test = "IBGA". the critical value used only for test = "LRT". the lower limit of the testing interval used when test = "IBGA". the upper limit of the testing interval used when test = "IBGA". the pvalue for qualitative interactions. the power based on the observed data. the number of subjects. the indexes of subjects with missing values. Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also print.qualint, coef.qualint, plot.qualint, qualval Examples #### Continuous #### ynorm <- rnorm(300) trtment <- sample(c(0, 1), 300, prob = c(0.4, 0.6), subgrp <- sample(c(0, 1, 2), 300, prob = c(1/3, 1/3, 1/3), test1 <- qualint(ynorm, trtment, subgrp) plot(test1) print(test1) coef(test1) test2 <- qualint(ynorm, trtment, subgrp, plotout = TRUE) test3 <- qualint(ynorm, trtment, subgrp, test = "LRT") #### Binary #### ybin <- sample(c(0, 1), 300, prob = c(0.3, 0.7), test4 <- qualint(ybin, trtment, subgrp, type = "binary") test5 <- qualint(ybin, trtment, subgrp, type = "binary", scale = "RR", test = "LRT")

qualval 11 #### Survival #### time <- rpois(300, 200) censor <- sample(c(0, 1), 300, prob = c(0.7, 0.3), test6 <- qualint(surv(time, censor), trtment, subgrp) test7 <- qualint(surv(time, censor), trtment, subgrp, type = "survival", test = "LRT") test8 <- qualint(surv(time, censor), trtment, subgrp, test = "IBGA", plotout = TRUE) qualval Test for qualitative interactions from estimation Description Test for qualitative interactions between treatment effects and patient subgroups from the estimated treatment effect and its standard error directly. Output all the results related with qualitative interaction tests as a "qualint" object, just like the "qualint" function. Two common tests for qualitative interactions are included: IBGA and LRT, among which IBGA is the default. Users need to input the estiamted treatment effect and its standard erro themselves, therefore could accommodate any types of responses. Usage qualval(effect, se, test = c("ibga", "LRT"), alpha = 0.05, plotout = FALSE) Arguments effect se test alpha plotout treatment effects. A numeric vector as the estimated (for pvalue) or designed (for power) treatment effects for different patient subgroups. standard error of estimated treatmen effects. A numeric vector as the standard error for the estimated treatment effects. testing method. Choose either "IBGA" (interval based graphical approach) or "LRT" (Gail Simon likelihood ratio test). significance level. The type I error for qualitative interaction tesing. The default is 0.05. whether output the plot or not for test = "IBGA". There is no plot output for test = "LRT". Details This function is a more generalized version of qualint in the sense that it could be used for any types of responses. However, comepared to qualint, the user needs to input the estimated (for pvalue) or designed (for power ) treatment effects and its standard error by themselves to use this function. It gives more freedom and allows users to choose the method they prefer before testing for qualitative interactions.

12 qualval Value An object with S3 class "qualint". call n type alpha treatment reference nsbp subgroup scale effect se LowerCI UpperCI test index cvalue LowerTI UpperTI pvalue power nobs missing the call that produces this object. the sample size for each treatment in each subgroup. response type. significance level for the test. treatment factors. reference treatment used for the comparison. the number of patient subgroups. subgroup factors. the scale type for treatment effects (see above). estimated treatment effects. standard error of treatment effects estimators. the lower limit of the confidence interval. the upper limit of the confidence interval. testing method used here, either "IBGA" or "LRT". the testing index used only for test = "IBGA". the critical value used only for test = "LRT". the lower limit of the testing interval used when test = "IBGA". the upper limit of the testing interval used when test = "IBGA". the pvalue for qualitative interactions. the power based on the observed data. the number of subjects. the indexes of subjects with missing values. Author(s) Lixi Yu, Eun-Young Suh, Guohua (James) Pan Maintainer: Lixi Yu <lixi-yu@uiowa.edu> References Gail and Simon (1985), Testing for qualitative interactions between treatment effects and patient subsets, Biometrics, 41, 361-372. Pan and Wolfe (1993), Tests for generalized problems of detecting qualitative interaction, Technical Report No. 526, Department of Statistics, The Ohio State University. Pan and Wolfe (1997), Test for qualitative interaction of clinical significance, Statistics in Medicine, 16, 1645-1652. See Also print.qualint, coef.qualint, plot.qualint, qualint

qualval 13 Examples test9 <- qualval(effect = c(1.0, 0.5, -2.0), se = c(0.86, 0.64, 0.32)) print(test9) plot(test9)

Index coef.qualint, 3, 5 7, 10, 12 ibga, 4 plot.qualint, 4, 5, 7, 10, 12 print.qualint, 4, 6, 7, 10, 12 qualint, 8, 12 QualInt-package, 2 qualval, 10, 11 14