Package frt. R topics documented: February 19, 2015

Similar documents
Package ECctmc. May 1, 2018

Package flsa. February 19, 2015

Package FastKNN. February 19, 2015

Package filematrix. R topics documented: February 27, Type Package

Package assortnet. January 18, 2016

The BHH2 Package. July 27, 2006

Package blockmatrix. February 19, 2015

Package glcm. August 29, 2016

Package crochet. January 8, 2018

Package NetCluster. R topics documented: February 19, Type Package Version 0.2 Date Title Clustering for networks

Package slam. February 15, 2013

Package gpdtest. February 19, 2015

Package orthogonalsplinebasis

Package ArrayBin. February 19, 2015

Package rhor. July 9, 2018

Package dkdna. June 1, Description Compute diffusion kernels on DNA polymorphisms, including SNP and bi-allelic genotypes.

Package bigalgebra. R topics documented: February 19, 2015

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package rmatio. July 28, 2017

Package egonet. February 19, 2015

Package RYoudaoTranslate

Package anidom. July 25, 2017

Package UNF. June 13, 2017

Package MergeGUI. R topics documented: February 19, 2015

Package misclassglm. September 3, 2016

Package slam. December 1, 2016

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package FractalParameterEstimation

Package Grid2Polygons

Package neural. R topics documented: February 20, 2015

Package RCA. R topics documented: February 29, 2016

Package datasets.load

Package Rcplex. June 12, 2016

Package matchingr. January 26, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package CatEncoders. March 8, 2017

Package longclust. March 18, 2018

Package SoftClustering

Package clustering.sc.dp

Package MCDM. September 22, 2016

Package PottsUtils. R topics documented: February 19, 2015

Package getopt. February 16, 2018

Package spark. July 21, 2017

Package eulerian. February 19, Index 5

Package mdftracks. February 6, 2017

Package tmpm. February 29, 2016

Package Rcplex. February 15, 2013

Package clusterrepro

Package bisect. April 16, 2018

Package binmto. February 19, 2015

Package Rglpk. May 18, 2017

Package endogenous. October 29, 2016

Package rpst. June 6, 2017

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

Package Ridit. February 19, 2015

The supclust Package

Package nmslibr. April 14, 2018

Package rngsetseed. February 20, 2015

Package VecStatGraphs3D

Package lpsymphony. February 6, 2018

Package svd. R topics documented: March 24, Type Package. Title Interfaces to various state-of-art SVD and eigensolvers. Version 0.3.

Package fastsom. February 15, 2013

Package sspline. R topics documented: February 20, 2015

Package glinternet. June 15, 2018

Package ptinpoly. February 20, 2015

Package Mondrian. R topics documented: March 4, Type Package

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

Package lhs. R topics documented: January 4, 2018

Package nonlinearicp

Package tatest. July 18, 2018

Package subtype. February 20, 2015

Package projector. February 27, 2018

Package SSLASSO. August 28, 2018

Package rmumps. September 19, 2017

Package DSBayes. February 19, 2015

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package EDFIR. R topics documented: July 17, 2015

Package nos. September 11, 2017

Package biglars. February 19, 2015

Package parcor. February 20, 2015

Package milr. June 8, 2017

Package sfc. August 29, 2016

Package snpstatswriter

Package kirby21.base

Package fastdummies. January 8, 2018

Package ConvergenceClubs

Package curry. September 28, 2016

Package Rprofet. R topics documented: April 14, Type Package Title WOE Transformation and Scorecard Builder Version 2.2.0

Package TANOVA. R topics documented: February 19, Version Date

Package gibbs.met. February 19, 2015

Package GCAI.bias. February 19, 2015

Package keep. R topics documented: December 16, 2015

Package mvprobit. November 2, 2015

Package ANOVAreplication

Package kernelfactory

Package madsim. December 7, 2016

Package LSDinterface

Package elmnnrcpp. July 21, 2018

Package apastyle. March 29, 2017

Package desirability

Transcription:

Package frt February 19, 2015 Version 0.1 Date 2011-12-31 Title Full Randomization Test Author Giangiacomo Bravo <giangiacomo.bravo@unito.it>, Lucia Tamburino <lucia.tamburino@alice.it>. Maintainer Giangiacomo Bravo <giangiacomo.bravo@unito.it> Perform full randomization tests. License GPL (>= 2) URL http://www.r-project.org Repository CRAN Date/Publication 2012-10-29 08:58:47 NeedsCompilation no R topics documented: bin.............................................. 2 comb............................................ 2 concat............................................ 3 frt.............................................. 4 frt.paired........................................... 5 shoes............................................ 6 tomatoes........................................... 7 Index 8 1

2 comb bin Transform decimal into binary bin transforms a decimal number into a binary one in vectorial form. bin(x) x an integer bin takes as input an integer and transforms it into the corresponding binary number. The output is a vector whose elements are the coefficients of increasing powers of 2, i.e., the ith item is the coefficient for 2 i 1. For instance, bin(4) returns (0, 0, 1). a vector of 0/1 Lucia Tamburino, Giangiacomo Bravo for (i in 0:10) print(bin(i)) comb Build a matrix with combinations of zeros and ones. Internal function, generally not called by users. comb(m, n)

concat 3 m n an integer, corresponding to the number of zeros. It must be greater or equal to zero. an integer, corresponding to the number of ones. It must be greater or equal to zero. comb builds the matrix with all combinations of m zeros and n ones. The output matrix will hence have as number of columns n c = m+n and as number of rows n r = (m+n)!/(m!n!), which is the number of all the possible combinations. Each row will contain one of the n r possible combinations of m zeros and n ones. A matrix Lucia Tamburino comb(3,2) concat Combine rows of two input matrices Internal function, generally not called by users. concat(x1, x2) x1 x2 A matrix. It can have any numbers of columns and rows, but cannot be empty A matrix. It can have any numbers of columns and rows, but cannot be empty This function takes as input two matrices and builds a matrix with all the possible combinations of the rows of the first input matrix, with the rows of the second one. If r 1 and c 1 (resp. r 2 and c 2 ) are the row and the column number of the matrix x1 (resp. x2), then the output matrix will have c 1 + c 2 columns and r 1 r 2 rows. Therefore, each row of the output matrix is composed by any of the rows of x1 (in the first c 1 columns) and any of the rows of x2 (in the column from c 1 + 1 to c 1 + c 2 ).

4 frt A matrix. Lucia Tamburino m1 <- matrix(1:6, nrow=2, ncol=3) print(m1) m2 <- matrix(c(0,0,0,1,1,0,1,1), nrow=4, ncol=2) print(m2) concat(m1,m2) frt Full randomization test Performs a two sample full randomization test on vectors of data. frt(x, y, alternative = "two.sided") x y alternative a numeric vector a numeric vector a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. The function tests all the (n + m)!/n!m! possible arrangements, where n and m are the lengths of x and y respectively. This number (just as computational times and memory requirements) grows extremely fast with n and m. numeric the probability of the null hypothesis of no difference between means. Giangiacomo Bravo

frt.paired 5 References Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley. See Also frt.paired # Tomato yield example in Box et al. (2005, 78--80) data(tomatoes) attach(tomatoes) x <- pounds[fertilizer == "A"] y <- pounds[fertilizer == "B"] frt(x, y, alt="l") detach(tomatoes) frt.paired Full randomization paired test Performs a full randomization test on paired vectors of data. frt.paired(x, y, alternative = "two.sided") x y alternative a numeric vector a numeric vector a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter. x and y must have the same length. The function tests 2 n possible arrangements, where n is the length of x and y. This number (just as computational times and memory requirements) grows rapidly with n. numeric the probability of the null hypothesis of no difference between means.

6 shoes Giangiacomo Bravo References Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley. See Also frt # Boys shoes example in Box et al. (2005, 81--84) data(shoes) attach(shoes) frt.paired(mata, matb, alt="l") detach(shoes) shoes Boys shoes data Format Source Data for the boys shoes example in Box et al. (2005, 81 84). data(shoes) A data frame with 10 observations on the following 6 variables. boy a numeric vector mata a numeric vector sidea a factor with levels L R matb a numeric vector sideb a factor with levels L R diff a numeric vector Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley.

tomatoes 7 data(shoes) print(shoes) tomatoes Tomato yield example Format Source Data for the Tomato yield example in Box et al. (2005, 78 80) data(tomatoes) A data frame with 11 observations on the following 4 variables. run a numeric vector position a numeric vector fertilizer a factor with levels A B pounds a numeric vector Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley. data(tomatoes) print(tomatoes)

Index Topic datasets shoes, 6 tomatoes, 7 Topic design frt, 4 frt.paired, 5 Topic htest frt, 4 frt.paired, 5 Topic math bin, 2 comb, 2 Topic utilities bin, 2 comb, 2 concat, 3 bin, 2 comb, 2 concat, 3 frt, 4, 6 frt.paired, 5, 5 shoes, 6 tomatoes, 7 8