Package LIStest. February 19, 2015

Similar documents
Package BayesNI. February 19, 2015

Package MultisiteMediation

Package BNN. February 2, 2018

Package SimSCRPiecewise

Package CPE. R topics documented: February 19, 2015

Package comparec. R topics documented: February 19, Type Package

Package sscor. January 28, 2016

Package darts. February 19, 2015

Package gtheory. October 30, 2016

Package ltsbase. R topics documented: February 20, 2015

Package goftest. R topics documented: April 3, Type Package

Package rgabriel. February 20, 2015

Package SEMModComp. R topics documented: February 19, Type Package Title Model Comparisons for SEM Version 1.0 Date Author Roy Levy

Package CMC. R topics documented: February 19, 2015

Package depth.plot. December 20, 2015

Package ShrinkCovMat

Package Blendstat. February 21, 2018

Package IUPS. February 19, 2015

Package severity. February 20, 2015

Package factorqr. R topics documented: February 19, 2015

Package unbalhaar. February 20, 2015

Package TSF. July 15, 2017

Package spcov. R topics documented: February 20, 2015

Package idmtpreg. February 27, 2018

Package dhsic. R topics documented: July 27, 2017

Package ppcc. June 28, 2017

Package RI2by2. October 21, 2016

Package noncompliance

Package mpmcorrelogram

Package rnmf. February 20, 2015

Package invgamma. May 7, 2017

Package ChIPtest. July 20, 2016

Package mistwosources

Package weightquant. R topics documented: December 30, Type Package

Package flexcwm. R topics documented: July 11, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.0.

Package leiv. R topics documented: February 20, Version Type Package

Package eel. September 1, 2015

Package survidinri. February 20, 2015

Package scpdsi. November 18, 2018

Package Grace. R topics documented: April 9, Type Package

Package DTK. February 15, Type Package

Package flexcwm. R topics documented: July 2, Type Package. Title Flexible Cluster-Weighted Modeling. Version 1.1.

Package RTransferEntropy

The cramer Package. June 19, cramer.test Index 5

Package WaveletArima

Package scio. February 20, 2015

Package CCP. R topics documented: December 17, Type Package. Title Significance Tests for Canonical Correlation Analysis (CCA) Version 0.

Package NlinTS. September 10, 2018

Package R1magic. April 9, 2013

Package geoscale. R topics documented: May 14, 2015

Package clogitboost. R topics documented: December 21, 2015

Package polypoly. R topics documented: May 27, 2017

Package noise. July 29, 2016

Package TwoStepCLogit

Package FDRreg. August 29, 2016

Package supernova. February 23, 2018

Package SK. May 16, 2018

Package FindAllRoots

Package CovSel. September 25, 2013

Package bivariate. December 10, 2018

Package bmem. February 15, 2013

Package covsep. May 6, 2018

Package pfa. July 4, 2016

Package dhga. September 6, 2016

Package EL. February 19, 2015

Package EnergyOnlineCPM

Package RootsExtremaInflections

Package flora. R topics documented: August 29, Type Package. Title flora: taxonomical information on flowering species that occur in Brazil

Package mixture. R topics documented: February 13, 2018

Package msir. R topics documented: April 7, Type Package Version Date Title Model-Based Sliced Inverse Regression

Package testassay. November 29, 2016

Package HMMcopula. December 1, 2018

Package bigtime. November 9, 2017

Package ICBayes. September 24, 2017

Package CompQuadForm

Package emg. R topics documented: May 17, 2018

Package SimCorMultRes

Package generalhoslem

Package thief. R topics documented: January 24, Version 0.3 Title Temporal Hierarchical Forecasting

Package IGG. R topics documented: April 9, 2018

Package SPADAR. April 30, 2017

Package PeriodicTable

Package TruncatedNormal

Package R1magic. August 29, 2016

Package IsingSampler

Package basad. November 20, 2017

Package lomb. February 20, 2015

Package EMVS. April 24, 2018

Package aspi. R topics documented: September 20, 2016

Package NonpModelCheck

Package FinCovRegularization

Package SpatialPack. March 20, 2018

Package Tcomp. June 6, 2018

Package elhmc. R topics documented: July 4, Type Package

Package AID. R topics documented: November 10, Type Package Title Box-Cox Power Transformation Version 2.3 Date Depends R (>= 2.15.

Package codadiags. February 19, 2015

Package reinforcedpred

Package face. January 19, 2018

Package CRAC. February 19, 2015

Package HIMA. November 8, 2017

Transcription:

Type Package Package LIStest February 19, 2015 Title Tests of independence based on the Longest Increasing Subsequence Version 2.1 Date 2014-03-12 Author J. E. Garcia and V. A. Gonzalez-Lopez Maintainer J. E. Garcia <jg@ime.unicamp.br> Depends R (>= 2.10) Tests for independence between X and Y computed from a paired sample (x1,y1),...(xn,yn) of (X,Y), using one of the following statistics (a) the Longest Increasing Subsequence (Ln), (b) JLn, a Jackknife version of Ln or (c) JLMn, a Jackknife version of the longest monotonic subsequence. This family of tests can be applied under the assumption of continuity of X and Y. License GPL-2 LazyLoad yes LazyData yes NeedsCompilation no Repository CRAN Date/Publication 2014-03-12 23:17:20 R topics documented: LIStest-package....................................... 2 JLMn............................................ 2 JLn............................................. 3 lis.............................................. 5 lis.test............................................ 6 Ln.............................................. 7 TJLMN........................................... 8 TJLN............................................ 9 TLN............................................. 9 Index 10 1

2 JLMn LIStest-package Tests of independence based on the Longest Increasing Subsequence Tests for independence between X and Y computed from a paired sample (x1,y1),..., (xn,yn) of (X,Y), using one of the following statistics (a) the Longest Increasing Subsequence (Ln), (b) JLn, a Jackknife version of Ln or (c) JLMn, a Jackknife version of the longest monotonic subsequence. This family of tests can be applied under the assumption of continuity of X and Y. Package: LIStest Type: Package Version: 2.1 Date: 2014-03-12 License: GPL-2 J. E. Garcia and V. A. Gonzalez-Lopez Maintainer: J. E. Garcia <jg@ime.unicamp.br> JLMn JLMn statistic, to test independence It compute the JLMn-statistic, from a bivariate sample of continuous random variables X and Y. Usage JLMn(x, y) Arguments x, y numeric vectors of data values. x and y must have the same length.

JLn 3 See subsection 3.3-Main reference. For sample sizes less than 20, the correction introduced in subsection 3.2 from main reference, with c = 0.4 was avoided. Value The value of the JLMn-statistic. J. E. Garcia, V. A. Gonzalez-Lopez Examples mixture of two bivariate normal, one with correlation 0.9 and the other with correlation -0.9 N <-100 ro<- 0.90 Z1<-rnorm(N) Z2<-rnorm(N) X2<-X1<-Z1 I<-(1:floor(N*0.5)) I2<-((floor(N*0.5)+1):N) X1[I]<-Z1[I] X2[I]<-(Z1[I]*ro+Z2[I]*sqrt(1-ro*ro)) X1[I2]<-Z1[I2] X2[I2]<-(Z1[I2]*(-ro)+Z2[I2]*sqrt(1-ro*ro)) plot(x1,x2) calculate the statistic a<-jlmn(x1,x2) a JLn JLn statistic, to test independence It compute the JLn-statistic, from a bivariate sample of continuous random variables X and Y.

4 JLn Usage JLn(x, y) Arguments x, y numeric vectors of data values. x and y must have the same length. See subsection 3.2.-Main reference. For sample sizes less than 20, the correction introduced in subsection 3.2 from main reference, with c = 0.4 was avoided. Value The value of the JLn-statistic. J. E. Garcia and V. A. Gonzalez-Lopez Examples mixture of two bivariate normal, one with correlation 0.9 and the other with correlation -0.9 N <-100 ro<- 0.90 Z1<-rnorm(N) Z2<-rnorm(N) X2<-X1<-Z1 I<-(1:floor(N*0.5)) I2<-((floor(N*0.5)+1):N) X1[I]<-Z1[I] X2[I]<-(Z1[I]*ro+Z2[I]*sqrt(1-ro*ro)) X1[I2]<-Z1[I2] X2[I2]<-(Z1[I2]*(-ro)+Z2[I2]*sqrt(1-ro*ro)) plot(x1,x2) calculate the statistic a<-jln(x1,x2) a

lis 5 lis Longest increasing subsequence for a univariate sample It compute the size of the longest increasing subsequence from a sample of a (continuous) random variable. Usage lis(x) Arguments x numeric vector of data values. See example 2.1-Main reference. Value Integer, the size of the longest increasing subsequence. J. E. Garcia and V. A. Gonzalez-Lopez Examples see Example 2.1 (reference) a<-lis(c(3,6,1,7,4,2,5,8)) a

6 lis.test lis.test Test for independence between paired samples Test for independence between X and Y computed from a paired sample (x1,y1),...(xn,yn) of (X,Y), using one of the following statistics (a) the Longest Increasing Subsequence (Ln), (b) JLn, a Jackknife version of Ln or (c) JLMn, a Jackknife version of the longest monotonic subsequence. This family of tests can be applied under the assumption of continuity of X and Y. Usage lis.test(x, y, alternative = c("two.sided", "less", "greater"), method = c("jlmn", "Ln", "JLn")) Arguments x, y numeric vectors of data values. x and y must have the same length. alternative method indicates the alternative hypothesis and must be one of "two.sided"(default), "greater" or "less". a character string indicating which statistics is to be used for the test. One of "Ln", "JLn", or "JLMn"(default). For sample sizes less than 20, the correction introduced in subsection 3.2 from main reference, with c = 0.4 was avoided. Value sample.estimate the value of the statistic. p.value alternative method the p-value for the test. a character string describing the alternative hypothesis. a character string indicating what type of Lis-test was performed. J. E. Garcia and V. A. Gonzalez-Lopez

Ln 7 Examples Example 1 mixture of two bivariate normal, one with correlation 0.9 and the other with correlation -0.9 N <-100 ro<- 0.90 Z1<-rnorm(N) Z2<-rnorm(N) X2<-X1<-Z1 I<-(1:floor(N*0.5)) I2<-((floor(N*0.5)+1):N) X1[I]<-Z1[I] X2[I]<-(Z1[I]*ro+Z2[I]*sqrt(1-ro*ro)) X1[I2]<-Z1[I2] X2[I2]<-(Z1[I2]*(-ro)+Z2[I2]*sqrt(1-ro*ro)) plot(x1,x2) calculate the p.value using the default settings (method="jlmn" and alternative="two.sided") lis.test(x1,x2) calculate the p.value using method="jln" and alternative="two.sided". lis.test(x1,x2,method="jln") Example 2: see subsection 4.3.2-Application 2 from main reference. (It requires the package VGAM) require(vgam) plot(coalminers$bw, coalminers$nbw) lis.test(coalminers$bw, coalminers$nbw, alternative = "greater", method = "Ln") lis.test(coalminers$bw, coalminers$nbw, alternative = "greater", method = "JLn") Ln Ln (Longest Increasing Subsequence) statistic, to test independence It compute the Ln-statistic, from a bivariate sample of continuous random variables X and Y. Usage Ln(x, y) Arguments x, y numeric vectors of data values. x and y must have the same length.

8 TJLMN Value See Section 2.-Main reference. The value of the Ln-statistic. J. E. Garcia and V. A. Gonzalez-Lopez Examples mixture of two bivariate normal, one with correlation 0.9 and the other with correlation -0.9 N <-100 ro<- 0.90 Z1<-rnorm(N) Z2<-rnorm(N) X2<-X1<-Z1 I<-(1:floor(N*0.5)) I2<-((floor(N*0.5)+1):N) X1[I]<-Z1[I] X2[I]<-(Z1[I]*ro+Z2[I]*sqrt(1-ro*ro)) X1[I2]<-Z1[I2] X2[I2]<-(Z1[I2]*(-ro)+Z2[I2]*sqrt(1-ro*ro)) plot(x1,x2) calculate the statistic a<-ln(x1,x2) a TJLMN Simulated values for the JLMn statistic Simulated values for the JLMn statistic under the hypothesis of independence Format The format is: List of 200 tables

TJLN 9 TJLN Simulated values for the JLn statistic Format Simulated values for the JLn statistic under the hypothesis of independence. The format is: List of 200 tables TLN Simulated values for the Ln statistic Format Simulated values for the Ln statistic under the hypothesis of independence The format is: List of 200 tables

Index Topic \textasciitildecopula JLMn, 2 JLn, 3 lis, 5 lis.test, 6 Ln, 7 Topic \textasciitildelongest increasing subsequence JLMn, 2 JLn, 3 lis, 5 lis.test, 6 Ln, 7 Topic datasets TJLMN, 8 TJLN, 9 TLN, 9 JLMn, 2 JLn, 3 lis, 5 lis.test, 6 LIStest (LIStest-package), 2 LIStest-package, 2 Ln, 7 TJLMN, 8 TJLN, 9 TLN, 9 10