Package InPosition. R topics documented: February 19, 2015

Similar documents
Package TExPosition. R topics documented: January 31, 2019

Package ExPosition. February 19, 2015

Package MExPosition. R topics documented: February 19, Type Package Title Multi-table ExPosition Version 2.0.

Package prettygraphs

Package cgh. R topics documented: February 19, 2015

Package DistatisR. February 19, 2015

Package EnQuireR. R topics documented: February 19, Type Package Title A package dedicated to questionnaires Version 0.

Package PCADSC. April 19, 2017

Package qrfactor. February 20, 2015

Package fso. February 19, 2015

Package munfold. R topics documented: February 8, Type Package. Title Metric Unfolding. Version Date Author Martin Elff

Package mpm. February 20, 2015

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

The ca Package. October 29, 2007

Package epitab. July 4, 2018

Package texteffect. November 27, 2017

Feature Selection Using Modified-MCA Based Scoring Metric for Classification

Package ECctmc. May 1, 2018

Package ca. R topics documented: February 15, Version Date Title Simple, Multiple and Joint Correspondence Analysis

Package spark. July 21, 2017

Predict Outcomes and Reveal Relationships in Categorical Data

Package QCAtools. January 3, 2017

Package bingat. R topics documented: July 5, Type Package Title Binary Graph Analysis Tools Version 1.3 Date

Package pcapa. September 16, 2016

Package pca3d. February 17, 2017

Package gains. September 12, 2017

Package r.jive. R topics documented: April 12, Type Package

Package feature. R topics documented: July 8, Version Date 2013/07/08

Package MixSim. April 29, 2017

Package qvcalc. R topics documented: September 19, 2017

Package feature. R topics documented: October 26, Version Date

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

Package GLDreg. February 28, 2017

Package chi2x3way. R topics documented: January 23, Type Package

Package mrm. December 27, 2016

Package sspline. R topics documented: February 20, 2015

IBM SPSS Categories. Predict outcomes and reveal relationships in categorical data. Highlights. With IBM SPSS Categories you can:

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package Funclustering

Chapter II Multiple Correspondance Analysis (MCA)

Package RCA. R topics documented: February 29, 2016

Package hbm. February 20, 2015

Package binmto. February 19, 2015

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package MPCI. October 25, 2015

Package ssd. February 20, Index 5

Package EMC. February 19, 2015

Package semisup. March 10, Version Title Semi-Supervised Mixture Model

Package kofnga. November 24, 2015

Package MatrixCorrelation

Package cncagui. June 21, 2015

Package ade4tkgui. R topics documented: November 9, Version Date Title 'ade4' Tcl/Tk Graphical User Interface

Package subplex. April 5, 2018

Package gibbs.met. February 19, 2015

Package simr. April 30, 2018

Package datasets.load

Package fastdummies. January 8, 2018

Package manet. September 19, 2017

Package ScottKnottESD

Package mgc. April 13, 2018

Package fitplc. March 2, 2017

Package corclass. R topics documented: January 20, 2016

Package r2d2. February 20, 2015

Package sizemat. October 19, 2018

Package frequencyconnectedness

Package marqlevalg. February 20, 2015

Package CompModSA. February 14, 2012

Package cwm. R topics documented: February 19, 2015

Package ClustGeo. R topics documented: July 14, Type Package

Package DPBBM. September 29, 2016

Package sparsereg. R topics documented: March 10, Type Package

Package PropClust. September 15, 2018

Package comparedf. February 11, 2019

Package strat. November 23, 2016

Package fbroc. August 29, 2016

Package clustering.sc.dp

Package mcmcse. February 15, 2013

Package panelview. April 24, 2018

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

Package nodeharvest. June 12, 2015

Package Hotelling. February 15, 2013

Package lga. R topics documented: February 20, 2015

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

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

Package XMRF. June 25, 2015

Package PTE. October 10, 2017

IBM SPSS Categories 23

Package sglr. February 20, 2015

Package rferns. November 15, 2017

Package mhde. October 23, 2015

Package rgcvpack. February 20, Index 6. Fitting Thin Plate Smoothing Spline. Fit thin plate splines of any order with user specified knots

Package mixphm. July 23, 2015

Package anomalydetection

Package missforest. February 15, 2013

Package OptimaRegion

Package areaplot. October 18, 2017

Package Cubist. December 2, 2017

Package JOP. February 19, 2015

Package RcmdrPlugin.temis

Package dissutils. August 29, 2016

Transcription:

Package InPosition February 19, 2015 Type Package Title Inference Tests for ExPosition Version 0.12.7 Date 2013-12-09 Author Derek Beaton, Joseph Dunlop, Herve Abdi Maintainer Derek Beaton <exposition.software@gmail.com> Non-parametric resampling-based inference tests for ExPosition. License GPL-2 Depends prettygraphs (>= 2.1.4), ExPosition (>= 2.0.0) BugReports http://code.google.com/p/exposition-family/issues/list NeedsCompilation no Repository CRAN Date/Publication 2013-12-11 16:07:09 R topics documented: InPosition-package..................................... 2 boot.compute.fj....................................... 3 boot.ratio.test........................................ 4 boot.samples........................................ 6 cachitest.......................................... 7 contingency.data.break................................... 8 continueresampling.................................... 9 epca.inference.battery................................... 9 epgpca.inference.battery................................. 11 epmca.inference.battery.................................. 12 eppca.inference.battery.................................. 14 ingraphs........................................... 16 print.epca.inference.battery................................ 17 print.epgpca.inference.battery.............................. 18 print.epmca.inference.battery............................... 18 1

2 InPosition-package print.eppca.inference.battery............................... 19 print.inpoboot........................................ 19 print.inpoboottests..................................... 20 print.inpocomponents................................... 20 print.inpoomni....................................... 21 print.inpooutput....................................... 21 rebuildmcatable...................................... 22 Index 23 InPosition-package InPosition: Inference Tests for Exploratory Analysis with the Singular Value DecomPosition (ExPosition). Details InPosition provides multiple forms of inference tests for the ExPosition package. Package: InPosition Type: Package Version: 0.12.7 Date: 2013-12-09 Depends: R (>=2.15.0), prettygraphs (>= 2.1.4), ExPosition (>= 2.0.0) License: GPL-2 URL: http://www.utdallas.edu/~derekbeaton/software/exposition Questions, comments, compliments, and complaints go to Derek Beaton <exposition.software@gmail.com>. Also see the bug-tracking and live update website for ExPosition: http://code.google.com/p/expositionfamily/ Primary authors and contributors are: Derek Beaton, Joseph Dunlop, and Hervé Abdi References Permutation: Berry, K. J., Johnston, J. E., & Mielke, P. W. (2011). Permutation methods. Wiley Interdisciplinary Reviews: Computational Statistics,3, 527 542. Peres-Neto, P. R., Jackson, D. A., & Somers, K. M. (2005). How many principal components? Stopping rules for determining the number of non-trivial axes revisited. Computational Statistics & Data Analysis, 49(4), 974-997.

boot.compute.fj 3 Bootstrap: Chernick, M. R. (2008). Bootstrap methods: A guide for practitioners and researchers (Vol. 619). Wiley-Interscience. Hesterberg, T. (2011). Bootstrap. Wiley Interdisciplinary Reviews: Computational Statistics, 3, 497 526. See Also eppca.inference.battery, epgpca.inference.battery, epca.inference.battery, epmca.inference.battery. There are no inference tests for MDS at this time. We recommend PCA for inference instead of MDS (some MDS inference tests require the rectangluar table, not the distances, so it is easier to just use PCA). See also ingraphs for graphing and cachitest for an alternate to resampling methods for Correspondence Analysis. Examples #For more examples, see each individual function (as noted above). boot.compute.fj Compute bootstrap resampled fj as supplemental elements. This function computes a bootstrap resampled set of data and projects fj as supplemental elements. boot.compute.fj(data, res, DESIGN = NULL, constrained = FALSE) DATA res DESIGN constrained The original data matrix to be bootstrapped. Rows will be bootstrapped and are assumed to be observations. of class expooutput. Results from one of the ExPosition methods (e.g., eppca, epmca), A design matrix (in disjunctive coding). Only used if constrained is TRUE. a boolean. If TRUE, bootstrap resampling will occur within groups as designated by the DESIGN matrix. Value fjj a set of factor scores of the measures (columns, fj) for the bootstrapped data.

4 boot.ratio.test Derek Beaton References Chernick, M. R. (2008). Bootstrap methods: A guide for practitioners and researchers (Vol. 619). Wiley-Interscience. Hesterberg, T. (2011). Bootstrap. Wiley Interdisciplinary Reviews: Computational Statistics, 3, 497 526. See Also See the functions supplementarycols and link{boot.samples} Examples ##the following code generates 100 bootstrap resampled ##projections of the measures from the Iris data set. data(ep.iris) data <- ep.iris$data design <- ep.iris$design iris.pca <- epgpca(data,scale="ss1",design=design,make_design_nominal=false) boot.fjs.unconstrained <- array(0,dim=c(dim(iris.pca$exposition.data$fj),100)) boot.fjs.constrained <- array(0,dim=c(dim(iris.pca$exposition.data$fj),100)) for(i in 1:100){ #unconstrained means we resample any of the 150 flowers boot.fjs.unconstrained[,,i] <- boot.compute.fj(ep.iris$data,iris.pca) #constrained resamples within each of the 3 groups boot.fjs.constrained[,,i] <- boot.compute.fj(data,iris.pca,design,true) } boot.ratio.test Performs bootstrap ratio test. Performs bootstrap ratio test which is analogous to a t- or z-score. boot.ratio.test(boot.cube, critical.value = 2)

boot.ratio.test 5 Value boot.cube an array. This is the bootstrap resampled data. dim 1 (rows) are the items to be tested (e.g., fj, see boot.compute.fj). dim 2 (columns) are the components from the supplemental projection. dim 3 (depth) are each bootstrap sample. critical.value numeric. This is the value that would be used as a cutoff in a t- or z-test. Default is 2 (i.e., 1.96 rounded up). The higher the number, the more difficult to reject the null. A list with the following items: return(list(sig.boot.ratios=significant.boot.ratios,boot.ratios=boot.ratios,critical.value=critical.value)) sig.boot.ratios This is a matrix with the same number of rows and columns as boot.cube. If TRUE, the bootstrap ratio was larger than critical.value. If FALSE, it was smaller. boot.ratios This is a matrix with bootstrap ratio values that has the same number of rows and columns as boot.cube. critical.value the critical value input is also returned. Derek Beaton and Hervé Abdi References The name bootstrap ratio comes from the Partial Least Squares in Neuroimaging literature. See: McIntosh, A. R., & Lobaugh, N. J. (2004). Partial least squares analysis of neuroimaging data: applications and advances. Neuroimage, 23, S250 S263. The bootstrap ratio is related to other tests of values with respect to the bootstrap distribution, such as the Interval-t. See: Chernick, M. R. (2008). Bootstrap methods: A guide for practitioners and researchers (Vol. 619). Wiley-Interscience. Hesterberg, T. (2011). Bootstrap. Wiley Interdisciplinary Reviews: Computational Statistics, 3, 497 526. See Also boot.compute.fj Examples ##the following code generates 100 bootstrap resampled ##projections of the measures from the Iris data set. data(ep.iris) data <- ep.iris$data

6 boot.samples design <- ep.iris$design iris.pca <- epgpca(data,scale="ss1",design=design,make_design_nominal=false) boot.fjs.unconstrained <- array(0,dim=c(dim(iris.pca$exposition.data$fj),100)) boot.fjs.constrained <- array(0,dim=c(dim(iris.pca$exposition.data$fj),100)) for(i in 1:100){ #unconstrained means we resample any of the 150 flowers boot.fjs.unconstrained[,,i] <- boot.compute.fj(ep.iris$data,iris.pca) #constrained resamples within each of the 3 groups boot.fjs.constrained[,,i] <- boot.compute.fj(data,iris.pca,design,true) } #now compute the bootstrap ratios: ratios.unconstrained <- boot.ratio.test(boot.fjs.unconstrained) ratios.constrained <- boot.ratio.test(boot.fjs.constrained) boot.samples Compute indicies for bootstrap resampling. This function computes a set of indicies for bootstrap resampling. It can be unconstrained or bootstrap within a group design. boot.samples(data, DESIGN = NULL, constrained = FALSE) DATA DESIGN constrained The original data matrix to be bootstrapped. Rows will be bootstrapped and are assumed to be observations. A design matrix (in disjunctive coding). Only used if constrained is TRUE. a boolean. If TRUE, bootstrap resampling will occur within groups as designated by the DESIGN matrix. Value a set of indicies to be used to be used as the bootstrap resampled indices. Derek Beaton See Also boot.compute.fj and boot.ratio.test

cachitest 7 Examples data(ep.iris) unconstrained.indices <- boot.samples(ep.iris$data) #ep.iris$data[unconstrained.indices,] constrained.indices <- boot.samples(ep.iris$data,design=ep.iris$design,constrained=true) #ep.iris$data[constrained.indices,] cachitest cachitest: correspondence analysis tests without resampling. cachitest performs 3 sets of chi-square tests along the lines of Lebart s v-tests. These tests are designed to be conservative estimates of chi-square tests on contingency data. The tests treat this data in a standard chi-square framework, but are helpful to understand correspondence analysis data when permutation and bootstrap become unfeasible. cachitest(data, res, critical.value = 2) Value DATA res Data as would be entered for Correspondence Analysis (see link{epca}) Results from correspondence analysis (e.g., output from link{epca}). critical.value numeric. A value, analogous to a z- or t-score to be used to determine significance (via bootstrap ratio). a list with the following values: j.sig.vals j.signed.vals j.p.vals i.sig.vals i.signed.vals i.p.vals omni.val omni.p boolean matrix. Identifies which column items are significant (based on critical.value). chi-square values associated to column items, multiplied by the sign of their component scores ($fj). p values associated to column items in a chi-square test. boolean matrix. Identifies which row items are significant (based on critical.value). chi-square values associated to row items, multiplied by the sign of their component scores ($fi). p values associated to row items in a chi-square test. chi-square value associated to the table. p value associated to a chi-square tests of the table.

8 contingency.data.break Derek Beaton See Also epca.inference.battery contingency.data.break Bootstrap or permutation resampling for contingency tables Bootstrap or permutation resampling for contingency tables. More specifically, for correspondence analysis (epca). contingency.data.break(data, boot = FALSE) DATA boot A contingency table to resample. a boolean. If TRUE, use bootstrap (resample with replacement) resampling. If FALSE, use permutation (resample with no replacement). Value A resampled contingency table. Joseph Dunlop and Derek Beaton See Also epca, epca.inference.battery Examples data(authors) boot.authors <- contingency.data.break(authors$ca$data,boot=true) perm.authors <- contingency.data.break(authors$ca$data)

continueresampling 9 continueresampling A stopping mechanism if resampling will take too long. This function asks the user if they want to continue with resampling if the total time for resampling takes more than 1 minute. It also provides an estimate of how long resampling takes. This function is required for InPosition and TInPosition and we do not recommend others use it. continueresampling(cycle.time) cycle.time Is the subtraction of two calls to proc.time. Note If computation time is expected to take more than 1 minute and interactive() is TRUE, this asks the user if they would like to continue. If Y, looping continues. If N, it stops. If computation time is expected to takre more than 1 minute and interactive() is FALSE, the function will proceed as is and perform inference tests. A progress bar is provided so the user can see how long the tests will take. See inference battery functions for details. Derek Beaton epca.inference.battery epca.inference.battery: Inference tests for Correspondence Analysis (CA) via InPosition. Correspondence Analysis (CA) and a battery of inference tests via InPosition. The battery includes permutation and bootstrap tests. epca.inference.battery(data, DESIGN = NULL, make_design_nominal = TRUE, masses = NULL, weights = NULL, hellinger = FALSE, symmetric = TRUE, graphs = TRUE, k = 0, test.iters = 100, critical.value = 2)

10 epca.inference.battery DATA original data to perform a CA on. DESIGN a design matrix to indicate if rows belong to groups. make_design_nominal a boolean. If TRUE (default), DESIGN is a vector that indicates groups (and will be dummy-coded). If FALSE, DESIGN is a dummy-coded matrix. masses weights hellinger symmetric graphs k test.iters a diagonal matrix or column-vector of masses for the row items. a diagonal matrix or column-vector of weights for the column it a boolean. If FALSE (default), Chi-square distance will be used. If TRUE, Hellinger distance will be used. a boolean. If TRUE (default) symmetric factor scores for rows and columns are computed. If FALSE, the simplex (column-based) will be returned. a boolean. If TRUE (default), graphs and plots are provided (via epgraphs) number of components to return. number of iterations critical.value numeric. A value, analogous to a z- or t-score to be used to determine significance (via bootstrap ratio). Details epca.inference.battery performs correspondence analysis and inference tests on a data matrix. If the expected time to compute the results (based on test.iters) exceeds 1 minute, you will be asked (via command line) if you want to continue. Value Returns two lists ($Fixed.Data and $Inference.Data). For $Fixed.Data, see epca, coreca for details on the descriptive (fixed-effects) results. $Inference.Data returns: components fj.boots omni Permutation tests of components. p-values ($p.vals) and distributions of eigenvalues ($eigs.perm) for each component Bootstrap tests of measures (columns). See boot.ratio.test output details. Permutation tests of components. p-values ($p.val) and distributions of total inertia ($inertia.perm) Derek Beaton, Joseph Dunlop, and Hervé Abdi. See Also epca, epmca, epmca.inference.battery, cachitest

epgpca.inference.battery 11 Examples ##warning: this example takes a while to compute. This is why it is reduced. data(authors) ca.authors.res <- epca.inference.battery(authors$ca$data/100) epgpca.inference.battery epgpca.inference.battery: Inference tests for Generalized Principal Component Analysis (PCA) via InPosition. Generalized Principal Component Analysis (PCA) and a battery of inference tests via InPosition. The battery includes permutation and bootstrap tests. epgpca.inference.battery(data, scale = TRUE, center = TRUE, DESIGN = NULL, make_design_nominal = TRUE, masses = NULL, weights = NULL, graphs = TRUE, k = 0, test.iters = 100, constrained = FALSE, critical.value = 2) DATA scale center DESIGN original data to perform a PCA on. a boolean, vector, or string. See expo.scale for details. a boolean, vector, or string. See expo.scale for details. a design matrix to indicate if rows belong to groups. make_design_nominal a boolean. If TRUE (default), DESIGN is a vector that indicates groups (and will be dummy-coded). If FALSE, DESIGN is a dummy-coded matrix. masses weights graphs k test.iters constrained a diagonal matrix or column-vector of masses for the row items. a diagonal matrix or column-vector of weights for the column items. a boolean. If TRUE (default), graphs and plots are provided (via epgraphs) number of components to return. number of iterations a boolean. If a DESIGN matrix is used, this will constrain bootstrap resampling to be within groups. critical.value numeric. A value, analogous to a z- or t-score to be used to determine significance (via bootstrap ratio).

12 epmca.inference.battery Details epgpca.inference.battery performs generalized principal components analysis and inference tests on a data matrix. If the expected time to compute the results (based on test.iters) exceeds 1 minute, you will be asked (via command line) if you want to continue. Value Returns two lists ($Fixed.Data and $Inference.Data). For $Fixed.Data, see epgpca, corepca for details on the descriptive (fixed-effects) results. $Inference.Data returns: components fj.boots Permutation tests of components. p-values ($p.vals) and distributions of eigenvalues ($eigs.perm) for each component Bootstrap tests of measures (columns). See boot.ratio.test output details. Derek Beaton and Hervé Abdi. See Also epgpca, eppca, eppca.inference.battery Examples #this is for ExPosition s iris data data(ep.iris) data<-ep.iris$data design<-ep.iris$design gpca.iris.res <- epgpca.inference.battery(data,design=design,make_design_nominal=false) epmca.inference.battery epmca.inference.battery: Inference tests for Multiple Correspondence Analysis (CA) via InPosition. Multiple Correspondence Analysis (CA) and a battery of inference tests via InPosition. The battery includes permutation and bootstrap tests.

epmca.inference.battery 13 epmca.inference.battery(data, make_data_nominal = TRUE, DESIGN = NULL, make_design_nominal = TRUE, masses = NULL, weights = NULL, hellinger = FALSE, symmetric = TRUE, correction = c("b"), graphs = TRUE, k = 0, test.iters = 100, constrained = FALSE, critical.value = 2) DATA original data to perform a MCA on. This data can be in original formatting (qualitative levels) or in dummy-coded variables. make_data_nominal a boolean. If TRUE (default), DATA is recoded as a dummy-coded matrix. If FALSE, DATA is a dummy-coded matrix. DESIGN a design matrix to indicate if rows belong to groups. make_design_nominal a boolean. If TRUE (default), DESIGN is a vector that indicates groups (and will be dummy-coded). If FALSE, DESIGN is a dummy-coded matrix. masses weights hellinger symmetric correction graphs k test.iters constrained a diagonal matrix or column-vector of masses for the row items. a diagonal matrix or column-vector of weights for the column it a boolean. If FALSE (default), Chi-square distance will be used. If TRUE, Hellinger distance will be used. a boolean. If TRUE symmetric factor scores for rows. which corrections should be applied? "b" = Benzécri correction, "bg" = Greenacre adjustment to Benzécri correction. a boolean. If TRUE (default), graphs and plots are provided (via epgraphs) number of components to return. number of iterations a boolean. If a DESIGN matrix is used, this will constrain bootstrap resampling to be within groups. critical.value numeric. A value, analogous to a z- or t-score to be used to determine significance (via bootstrap ratio). Details epmca.inference.battery performs multiple correspondence analysis and inference tests on a data matrix. If the expected time to compute the results (based on test.iters) exceeds 1 minute, you will be asked (via command line) if you want to continue.

14 eppca.inference.battery Value Returns two lists ($Fixed.Data and $Inference.Data). For $Fixed.Data, see epmca, coreca for details on the descriptive (fixed-effects) results. $Inference.Data returns: components fj.boots omni Permutation tests of components. p-values ($p.vals) and distributions of eigenvalues ($eigs.perm) for each component Bootstrap tests of measures (columns). See boot.ratio.test output details. Permutation tests of components. p-values ($p.val) and distributions of total inertia ($inertia.perm). This is only useful if corrections are performed. Total inertia is constant for permutation with no corrections in MCA. Derek Beaton, Joseph Dunlop, and Hervé Abdi. See Also epmca, epca, epca.inference.battery Examples data(mca.wine) mca.wine.res <- epmca.inference.battery(mca.wine$data) eppca.inference.battery eppca.inference.battery: Inference tests for Principal Component Analysis (PCA) via InPosition. Principal Component Analysis (PCA) and a battery of inference tests via InPosition. The battery includes permutation and bootstrap tests. eppca.inference.battery(data, scale = TRUE, center = TRUE, DESIGN = NULL, make_design_nominal = TRUE, graphs = TRUE, k = 0, test.iters = 100, constrained = FALSE, critical.value = 2)

eppca.inference.battery 15 DATA scale center original data to perform a PCA on. a boolean, vector, or string. See expo.scale for details. a boolean, vector, or string. See expo.scale for details. DESIGN a design matrix to indicate if rows belong to groups. make_design_nominal a boolean. If TRUE (default), DESIGN is a vector that indicates groups (and will be dummy-coded). If FALSE, DESIGN is a dummy-coded matrix. graphs k Details Value test.iters constrained a boolean. If TRUE (default), graphs and plots are provided (via epgraphs) number of components to return. number of iterations a boolean. If a DESIGN matrix is used, this will constrain bootstrap resampling to be within groups. critical.value numeric. A value, analogous to a z- or t-score to be used to determine significance (via bootstrap ratio). eppca.inference.battery performs principal components analysis and inference tests on a data matrix. If the expected time to compute the results (based on test.iters) exceeds 1 minute, you will be asked (via command line) if you want to continue. Returns two lists ($Fixed.Data and $Inference.Data). For $Fixed.Data, see eppca, corepca for details on the descriptive (fixed-effects) results. $Inference.Data returns: components fj.boots Permutation tests of components. p-values ($p.vals) and distributions of eigenvalues ($eigs.perm) for each component Bootstrap tests of measures (columns). See boot.ratio.test output details. See Also Derek Beaton and Hervé Abdi. eppca, epgpca, epgpca.inference.battery Examples data(words) pca.words.res <- eppca.inference.battery(words$data)

16 ingraphs ingraphs ingraphs: InPosition plotting function InPosition plotting function which is an interface to prettygraphs. ingraphs(res, DESIGN = NULL, x_axis = NULL, y_axis = NULL, inference.info = NULL, color.by.boots = TRUE, boot.cols = c("plum4", "darkseagreen", "firebrick3"), fi.col = NULL, fi.pch = NULL, fj.col = NULL, fj.pch = NULL, col.offset = NULL, constraints = NULL, xlab = NULL, ylab = NULL, main = NULL, bootstrapbars = TRUE, correlationplotter = TRUE, biplots = FALSE) res DESIGN x_axis y_axis results from InPosition or ExPosition. If results are from ExPosition, inference.info must be included. A design matrix to apply colors (by pallete selection) to row items which component should be on the x axis? which component should be on the y axis? inference.info Inference data as output by InPosition (of class inpooutput). color.by.boots a boolean. If TRUE, items are colored by bootstrap ratio test. Items larger than critical.value are colored plum4 on the horizontal component, darkseagreen on the vertical component, or firebrick3 if the item is significant on both components (to be visualized). If FALSE, the color of the items will be used. boot.cols fi.col vector of colors: c(horizontal component color, vertical component color, color when item i A matrix of colors for the row items. If NULL, colors will be selected. fi.pch A matrix of pch values for the row items. If NULL, pch values are all 21. fj.col A matrix of colors for the column items. If NULL, colors will be selected. fj.pch A matrix of pch values for the column items. If NULL, pch values are all 21. col.offset constraints xlab ylab main bootstrapbars A numeric offset value. Is passed to createcolorvectorsbydesign. Plot constraints as returned from prettyplot. If NULL, constraints are selected. x axis label y axis label main label for the graph window a boolean. If TRUE (default), bootstrap ratio bar plots will be created.

print.epca.inference.battery 17 Value correlationplotter a boolean. If TRUE (default), a correlation circle plot will be created. Applies to PCA family of methods (CA is excluded for now). biplots a boolean. If FALSE (default), separate plots are made for row items ($fi) and column items ($fj). If TRUE, row ($fi) and column ($fj) items will be on the same plot. Currently, nothing is returned. This function, for now, works as a visualizer for inference tests. Colors and constraints come from the descriptive (fixed effects) analysis. Derek Beaton See Also epgraphs Examples data(ep.iris) data<-ep.iris$data design<-ep.iris$design gpca.iris.res <- epgpca.inference.battery(data,design=design,make_design_nominal=false) ingraphs(gpca.iris.res,y_axis=3) print.epca.inference.battery Print Correspondence Analysis (CA) Inference results Print Correspondence Analysis (CA) Inference results. ## S3 method for class epca.inference.battery print(x,...) x an list that contains items to make into the epca.inference.battery class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt

18 print.epmca.inference.battery print.epgpca.inference.battery Print Generalized Principal Components Analysis (GPCA) Inference results Print Generalized Principal Components Analysis (GPCA) Inference results. ## S3 method for class epgpca.inference.battery print(x,...) x an list that contains items to make into the epgpca.inference.battery class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt print.epmca.inference.battery Print Multiple Correspondence Analysis (MCA) Inference results Print Multiple Correspondence Analysis (MCA) Inference results. ## S3 method for class epmca.inference.battery print(x,...) x an list that contains items to make into the epmca.inference.battery class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt

print.eppca.inference.battery 19 print.eppca.inference.battery Print Principal Components Analysis (PCA) Inference results Print Principal Components Analysis (PCA) Inference results. ## S3 method for class eppca.inference.battery print(x,...) x an list that contains items to make into the eppca.inference.battery class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt print.inpoboot Print results from InPosition Bootstraps Print bootstrap results from the InPosition. ## S3 method for class inpoboot print(x,...) x an list that contains items to make into the inpoboot class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt

20 print.inpocomponents print.inpoboottests Print results from InPosition Bootstrap Ratio Tests Print bootstrap ratio tests results from the InPosition. ## S3 method for class inpoboottests print(x,...) x an list that contains items to make into the inpoboottests class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt print.inpocomponents Print results from InPosition Components Permutation Test Print Components permutation test results from the inposition. ## S3 method for class inpocomponents print(x,...) x an list that contains items to make into the inpocomponents class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt

print.inpoomni 21 print.inpoomni Print results from InPosition Omnibus Permutation Test Print Omnibus permutation test results from the inposition. ## S3 method for class inpoomni print(x,...) x an list that contains items to make into the inpoomni class.... inherited/passed arguments for S3 print method(s). Derek Beaton and Cherise Chin-Fatt print.inpooutput Print results from InPosition Print results from the InPosition. ## S3 method for class inpooutput print(x,...) x an list that contains items to make into the inpooutput class.... inherited/passed arguments for S3 print method(s). See Also Derek Beaton and Cherise Chin-Fatt eppca.inference.battery, ingraphs

22 rebuildmcatable rebuildmcatable rebuildmcatable: rebuild categorical table from the disjunctive table. rebuildmcatable takes the disjunctive table used in MCA and rebuilds a categorical form of it. This function is used for permutation tests when only a disjunctive table is available. rebuildmcatable(data) DATA Disjunctive coded data table Value A categorical data table is returned. It has the same structure as the disjunctive table in a format that can be permuted. Derek Beaton

Index Topic bootstrap boot.compute.fj, 3 boot.ratio.test, 4 boot.samples, 6 contingency.data.break, 8 epca.inference.battery, 9 epgpca.inference.battery, 11 epmca.inference.battery, 12 eppca.inference.battery, 14 ingraphs, 16 Topic correspondence analysis cachitest, 7 Topic graphs ingraphs, 16 Topic inference boot.compute.fj, 3 boot.ratio.test, 4 cachitest, 7 Topic misc cachitest, 7 ingraphs, 16 rebuildmcatable, 22 Topic multivariate boot.compute.fj, 3 boot.ratio.test, 4 cachitest, 7 epca.inference.battery, 9 epgpca.inference.battery, 11 epmca.inference.battery, 12 eppca.inference.battery, 14 ingraphs, 16 InPosition-package, 2 rebuildmcatable, 22 Topic package InPosition-package, 2 Topic permutation contingency.data.break, 8 epca.inference.battery, 9 epgpca.inference.battery, 11 epmca.inference.battery, 12 eppca.inference.battery, 14 ingraphs, 16 Topic print print.epca.inference.battery, 17 print.epgpca.inference.battery, 18 print.epmca.inference.battery, 18 print.eppca.inference.battery, 19 print.inpoboot, 19 print.inpoboottests, 20 print.inpocomponents, 20 print.inpoomni, 21 print.inpooutput, 21 array, 5 boot.compute.fj, 3, 5, 6 boot.ratio.test, 4, 6, 10, 12, 14, 15 boot.samples, 6 cachitest, 3, 7, 10 contingency.data.break, 8 continueresampling, 9 coreca, 10, 14 corepca, 12, 15 createcolorvectorsbydesign, 16 epca, 8, 10, 14 epca.inference.battery, 3, 8, 9, 14 epgpca, 12, 15 epgpca.inference.battery, 3, 11, 15 epgraphs, 10, 11, 13, 15, 17 epmca, 3, 10, 14 epmca.inference.battery, 3, 10, 12 eppca, 3, 12, 15 eppca.inference.battery, 3, 12, 14, 21 expo.scale, 11, 15 ExPosition, 2, 3 ingraphs, 3, 16, 21 InPosition (InPosition-package), 2 23

24 INDEX InPosition-package, 2 prettygraphs, 16 prettyplot, 16 print.epca.inference.battery, 17 print.epgpca.inference.battery, 18 print.epmca.inference.battery, 18 print.eppca.inference.battery, 19 print.inpoboot, 19 print.inpoboottests, 20 print.inpocomponents, 20 print.inpoomni, 21 print.inpooutput, 21 rebuildmcatable, 22 supplementarycols, 4