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

Similar documents
Package citccmst. February 19, 2015

Package inctools. January 3, 2018

Package ICCbin. November 14, 2017

Package ega. March 21, 2017

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

Package clust.bin.pair

Package preference. May 8, 2018

Package AbsFilterGSEA

Package appnn. R topics documented: July 12, 2015

Package longroc. November 20, 2017

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

Package wally. May 25, Type Package

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

Package ORIClust. February 19, 2015

Package inote. June 8, 2017

Package QualInt. February 19, 2015

Package GANPAdata. February 19, 2015

Package pollen. October 7, 2018

Package singlecase. April 19, 2009

Package StepReg. November 3, 2017

Package xseq. R topics documented: September 11, 2015

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

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

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

Package ExactCIdiff. February 15, 2013

Package MethPed. September 1, 2018

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

Package CompareTests

Package speff2trial. February 20, 2015

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

Package DeconRNASeq. November 19, 2017

Package prognosticroc

Package cssam. February 19, 2015

Package sbpiper. April 20, 2018

Package xmeta. August 16, 2017

Package frailtyhl. February 19, 2015

Package msgbsr. January 17, 2019

Package IMAS. March 10, 2019

Package RNAsmc. December 11, 2018

Package hei. August 17, 2017

Package medicalrisk. August 29, 2016

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

Package seqdesign. April 27, Version 1.1 Date

Package influence.me

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

Package ClusteredMutations

The Tail Rank Test. Kevin R. Coombes. July 20, Performing the Tail Rank Test Which genes are significant?... 3

Package noia. February 20, 2015

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

Profile Analysis. Intro and Assumptions Psy 524 Andrew Ainsworth

Package CorMut. January 21, 2019

Package ncar. July 20, 2018

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

Package diggitdata. April 11, 2019

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

Package CorMut. August 2, 2013

About diffcoexp. Wenbin Wei, Sandeep Amberkar, Winston Hide

bivariate analysis: The statistical analysis of the relationship between two variables.

MMI 409 Spring 2009 Final Examination Gordon Bleil. 1. Is there a difference in depression as a function of group and drug?

Package BCRA. April 25, 2018

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

Package labstats. December 5, 2016

Package AIMS. June 29, 2018

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

Package SAMURAI. February 19, 2015

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

Package cancer. July 10, 2018

Package mdsdt. March 12, 2016

Package asymptest. May 10, 2018

Package tumgr. February 4, 2016

Package Fahrmeir. May 31, 2016

Package CTT. February 4, 2018

Binary Diagnostic Tests Two Independent Samples

Instructions for doing two-sample t-test in Excel

Package PROcess. R topics documented: June 15, Title Ciphergen SELDI-TOF Processing Version Date Author Xiaochun Li

RNA-seq. Differential analysis

Supplementary Data. Correlation analysis. Importance of normalizing indices before applying SPCA

Package mediation. September 18, 2009

COAL COMBUSTION RESIDUALS RULE STATISTICAL METHODS CERTIFICATION SOUTHERN ILLINOIS POWER COOPERATIVE (SIPC)

Package mem. R topics documented: October 23, Type Package Title The Moving Epidemic Method Version 2.11 Date Depends R (>= 3.4.

Midterm STAT-UB.0003 Regression and Forecasting Models. I will not lie, cheat or steal to gain an academic advantage, or tolerate those who do.

Section 6: Analysing Relationships Between Variables

Binary Diagnostic Tests Paired Samples

Reliability of Ordination Analyses

MULTIPLE LINEAR REGRESSION 24.1 INTRODUCTION AND OBJECTIVES OBJECTIVES

Package TFEA.ChIP. R topics documented: January 28, 2018

PROcess. June 1, Align peaks for a specified precision. A user specified precision of peak position.

Lessons in biostatistics

A Quick-Start Guide for rseqdiff

Day 11: Measures of Association and ANOVA

Package BUScorrect. September 16, 2018

Package pepdat. R topics documented: March 7, 2015

Package metaseq. R topics documented: November 1, Type Package. Title Meta-analysis of RNA-Seq count data in multiple studies. Version 1.1.

Small Group Presentations

Ward Headstrom Institutional Research Humboldt State University CAIR

Package splicer. R topics documented: August 19, Version Date 2014/04/29

Package CLL. April 19, 2018

Hour 2: lm (regression), plot (scatterplots), cooks.distance and resid (diagnostics) Stat 302, Winter 2016 SFU, Week 3, Hour 1, Page 1

Abstract Title Page Not included in page count. Authors and Affiliations: Joe McIntyre, Harvard Graduate School of Education

Transcription:

Type Package Title Non-Parametric Concordance Coefficient Version 1.0.3 Date 2017-04-10 Package nopaco April 13, 2017 A non-parametric test for multi-observer concordance and differences between concordances in (un)balanced data. License GPL (>= 3) Imports methods, Matrix (>= 1.1.5), parallel, stats Suggests MASS SystemRequirements C++11 RoxygenNote 6.0.1 NeedsCompilation yes Author Rowan Kuiper [cre, aut], Remco Hoogenboezem [aut], Sjoerd Huisman [ctb], Pieter Sonneveld [ths], Mark van Duin [ths] Maintainer Rowan Kuiper <r.kuiper.emc@gmail.com> Repository CRAN Date/Publication 2017-04-13 20:41:00 UTC R topics documented: coef............................................. 2 concordance.test....................................... 2 ConcordanceTest-class................................... 4 getpsi............................................ 4 names,concordancetest-method.............................. 6 rfrompsi........................................... 6 scores............................................ 7 $,ConcordanceTest-method................................. 8 Index 9 1

2 concordance.test coef Extract test results from the results of a concordance.test coef extract the test results from the results of a concordance.test ## S4 method for signature 'ConcordanceTest' coef(object,...) object An object of ConcordanceTest-class... Not used A matrix See Also Other concordance functions: concordance.test, getpsi, rfrompsi matrandom <- matrix(rnorm(3*20),20,3) testresult <- concordance.test(matrandom) getpsi(testresult) coef(testresult) concordance.test Perform a nonparametric concordance test. concordance.test performs a test for a random concordance (if a single matrix is given) or tests for equal concordance between two matrices. concordance.test(x, y = NULL, alternative = NULL, alpha = 0.05,...)

concordance.test 3 x y Details alternative a numeric matrix, subjects in the rows, repeated measurements in the columns (optional) a numeric matrix of equal size as argument x "less", "greater" or "two.sided". Only used when y is given. alpha significance level (default = 0.05)... see details Testing the deviation from random concordance: if only one matrix is given (i.e. argument x), its concordance will be tested for a deviation from a random concordance. The default alternative hypothesis is greater, thus higher concordance than would have been observed by chance. For small matrices (depending on number of replicate measurements) an exact method will be used to determine to p-value. In case of larger matrices either, the alternative beta approach (default), a beta approximation or a normal approximation is used. To enforce the use of either one method, the method argument can be used with value "exact","alt.beta","beta" or "normal". Testing for a difference between concordances: if both arguments x and y have been given, the equality of concordances of both matrices is tested. The default alternative hypothesis is two.sided. Both matrices must be of equal size and have corresponding missing entries. Eventual missing data in one matrix will also be set missing in the other. Unbalanced data due to randomly missing data or an unequal number of repeated measurements per subject is allowed. In that case, missing or unknown values must be set to NA. An object of ConcordanceTest-class References See Also P.Rothery (1979) Biometrika 66(3):629-639 Other concordance functions: coef, getpsi, rfrompsi require(mass) ##to use mvrnorm function #Generate a matrix without concordance matrandom <- matrix(rnorm(3*20),20,3) concordance.test(matrandom) #Generate a matrix with strong concordance sigma<-matrix(0.8,3,3) diag(sigma)<-1 matconcordant <- mvrnorm(20,mu=rep(0,3),sigma=sigma)

4 getpsi concordance.test(matconcordant) #Test concordances between matrices atest <- concordance.test(matconcordant, matrandom) getpsi(atest) coef(atest) ConcordanceTest-class Class ConcordanceTest This class stores results obtained from a concordance test. Details Class ConcordanceTest stores results from a concordance test. Slots pvalue The pvalue psi1 The concordance in matrix x psi2 The concordance in matrix y method The method used to obtain the pvalue alternative The alternative hypothesis ci.lower The lower confidence boudary ci.upper The upper confidence boudary ci.method The method used to obtain the confidence interval alpha The significance level call The call made to the concordance.test function getpsi Obtain concordance coefficients. getpsi returns the concordance coefficient(s) from a matrix or a result obtained by the concordance.test function.

getpsi 5 ## S4 method for signature 'ConcordanceTest,missing' getpsi(x) ## S4 method for signature 'matrix,missing' ## S4 method for signature 'data.frame,missing' ## S4 method for signature 'data.frame,data.frame' ## S4 method for signature 'matrix, NULL ' ## S4 method for signature 'matrix,matrix' x A numeric matrix or an object ConcordanceTest-class y A numeric matrix (optional)... Not used A numeric vector with coefficient(s) References P.Rothery (1979) Biometrika 66(3):629-639 See Also Other concordance functions: coef, concordance.test, rfrompsi matrandom <- matrix(rnorm(30),10,3) testresult <- concordance.test(matrandom) getpsi(testresult) getpsi(matrandom)

6 rfrompsi names,concordancetest-method Extract argument names from a ConcordanceTest object names extracts argument names from a ConcordanceTest-class object ## S4 method for signature 'ConcordanceTest' names(x) x An object of ConcordanceTest-class A character vector matrandom <- matrix(rnorm(3*20),20,3) testresult <- concordance.test(matrandom) names(testresult) rfrompsi Convertion between Pearson correlation and the non paramtric concordance coefficient Convertion between Pearson correlation and the non paramtric concordance coefficient rfrompsi(psi) psifromr(r) psi r a (vector of) non paramtric concordance coefficient(s) a (vector of) Pearson correlation coefficient(s)

scores 7 Details The convertion is performed following the relationship described by Rothery (1979). 2*cos(pi*(1-psi))-1 A (vector of) corresponding Pearson correlation coefficient(s). References Rothery, P. A nonparametric measure of intraclass correlation, Biometrika, 66, 3, 629-639 (1979). See Also Other concordance functions: coef, concordance.test, getpsi #Generate a matrix without concordance matrandom <- matrix(rnorm(30),10,3) result<-concordance.test(matrandom) getpsi(result) #concordance coefficient result$ci #95% confidence interval #Corresonding Pearson correlation rfrompsi(getpsi(result)) rfrompsi(result$ci) #Plot the relation between Pearson correlation and the nonparamatric concordance coefficient. r<-seq(-1,1,0.01) psi<-psifromr(r) plot(r,psi,type='l',xlab="pearson correlation", ylab="nonparametric concordance") scores Hypothetical data of outcomes for two risk models This data is generated as explained in the nopaco vignette. It represents the outcomes of the risk models (model A and model B). Both models were applied to gene expression profiles 100 subjects, each run in duplo. data(scores)

8 $,ConcordanceTest-method Format Source A list with two elements named modela and modelb both containing a dataframe with outcome scores for 100 subjects in the rows each having two replicate measurements in the columns. vignette("nopaco", package = "nopaco") data(scores) str(scores) plot(scores[['modela']]) plot(scores[['modelb']]) $,ConcordanceTest-method Extract argument values from a ConcordanceTest object Extracts argument values from a ConcordanceTest-class object ## S4 method for signature 'ConcordanceTest' x$name x name An object of ConcordanceTest-class The argument to get the value of The value of the requested argument matrandom <- matrix(rnorm(3*20),20,3) testresult <- concordance.test(matrandom) names(testresult) testresult$psi

Index Topic datasets scores, 7 $,ConcordanceTest-method, 8 coef, 2, 3, 5, 7 coef,concordancetest-method (coef), 2 concordance.test, 2, 2, 4, 5, 7 ConcordanceTest-class, 4 get,concordancetest-method ($,ConcordanceTest-method), 8 getpsi, 2, 3, 4, 7 getpsi,concordancetest,missing-method (getpsi), 4 getpsi,data.frame,data.frame-method (getpsi), 4 getpsi,data.frame,missing-method (getpsi), 4 getpsi,matrix,matrix-method (getpsi), 4 getpsi,matrix,missing-method (getpsi), 4 getpsi,matrix,null-method (getpsi), 4 names,concordancetest-method, 6 nopaco (concordance.test), 2 psifromr (rfrompsi), 6 rfrompsi, 2, 3, 5, 6 scores, 7 9