Package parfossil. February 20, 2015

Similar documents
Package fossil. February 19, 2015

Package marqlevalg. February 20, 2015

Package inext. November 12, 2016

Package texteffect. November 27, 2017

Package cgh. R topics documented: February 19, 2015

Package PTE. October 10, 2017

Package SiZer. February 19, 2015

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package spcadjust. September 29, 2016

The ecodist Package. April 11, 2006

Package sglr. February 20, 2015

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package sbf. R topics documented: February 20, Type Package Title Smooth Backfitting Version Date Author A. Arcagni, L.

Package gibbs.met. February 19, 2015

Package midastouch. February 7, 2016

Package missforest. February 15, 2013

Package TPD. June 14, 2018

Package PhyloMeasures

Package GLDreg. February 28, 2017

Package lga. R topics documented: February 20, 2015

Package RYoudaoTranslate

Package fbroc. August 29, 2016

Package SSLASSO. August 28, 2018

Package OLScurve. August 29, 2016

Package mcmcse. February 15, 2013

Package penalizedlda

Package RCA. R topics documented: February 29, 2016

Package clustvarsel. April 9, 2018

Package intccr. September 12, 2017

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

Package MeanShift. R topics documented: August 29, 2016

Package bootlr. July 13, 2015

Package atmcmc. February 19, 2015

Package calibrar. August 29, 2016

Package kirby21.base

Package distance.sample.size

Package FreeSortR. December 17, 2017

Package SparseFactorAnalysis

Package PCADSC. April 19, 2017

Package inca. February 13, 2018

Package Daim. February 15, 2013

Package OptimaRegion

Package MultiOrd. May 21, 2016

Package FrF2.catlg128

Package optimus. March 24, 2017

Package addhaz. September 26, 2018

Package mdftracks. February 6, 2017

Package FisherEM. February 19, 2015

Package complmrob. October 18, 2015

Package clipr. June 23, 2018

Package gpdtest. February 19, 2015

Package cncagui. June 21, 2015

Package CINID. February 19, 2015

Package cwm. R topics documented: February 19, 2015

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

Package glinternet. June 15, 2018

Package seg. February 15, 2013

Package doredis. R topics documented: December 15, Type Package. Title Foreach parallel adapter for the rredis package. Version 1.0.

Package ssd. February 20, Index 5

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

Package logitnorm. R topics documented: February 20, 2015

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

Package ECctmc. May 1, 2018

Package SoftClustering

Package anidom. July 25, 2017

Package RCEIM. April 3, 2017

Package treedater. R topics documented: May 4, Type Package

Package Rambo. February 19, 2015

Package mrm. December 27, 2016

Package assortnet. January 18, 2016

Package TilePlot. February 15, 2013

Package pso. R topics documented: February 20, Version Date Title Particle Swarm Optimization

Package CuCubes. December 9, 2016

Package snow. R topics documented: February 20, 2015

Package edrgraphicaltools

Package bisect. April 16, 2018

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

Package phrasemachine

Package NORTARA. February 19, 2015

Package spark. July 21, 2017

Package GFD. January 4, 2018

Package InformativeCensoring

Package ptinpoly. February 20, 2015

Package MicroStrategyR

Package ibm. August 29, 2016

Package MSwM. R topics documented: February 19, Type Package Title Fitting Markov Switching Models Version 1.

Package CALIBERrfimpute

Package qlearn. R topics documented: February 20, Type Package Title Estimation and inference for Q-learning Version 1.

Package estprod. May 2, 2018

Package gsalib. R topics documented: February 20, Type Package. Title Utility Functions For GATK. Version 2.1.

Package smaa. R topics documented: December 23, Version Date

Package MultiRR. October 21, 2015

Package nos. September 11, 2017

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

Package FCGR. October 13, 2015

Package fso. February 19, 2015

Package RAMP. May 25, 2017

Package mmtsne. July 28, 2017

Package bmd. R topics documented: February 19, Title Benchmark dose analysis for dose-response data. LazyLoad yes. LazyData yes. Version 0.

Package gee. June 29, 2015

Transcription:

Type Package Package parfossil February 20, 2015 Title Parallelized functions for palaeoecological and palaeogeographical analysis Version 0.2.0 Date 2010-12-10 Author Matthew Vavrek <matthew@matthewvavrek.com> Maintainer Matthew Vavrek <matthew@matthewvavrek.com> Depends fossil, foreach Description The package provides a number of easily parallelized functions from the fossil package. This package is designed to be used with some type of parallel computing backend, such as multicore, snow or MPI. License GPL (>= 2) URL http://matthewvavrek.com LazyLoad yes Repository CRAN Date/Publication 2012-10-29 08:59:23 NeedsCompilation no R topics documented: parfossil-package...................................... 2 par.nmds........................................... 2 par.spp.est.......................................... 4 Index 7 1

2 par.nmds parfossil-package Parallelized functions for palaeoecological and palaeogeographical analysis Description Details This package provides a number of functions from the fossil package that have been designed to be run on a parallel backend. The functions show a large speed up, even when just using a dual core versus single core set up, which can be very useful in situations with a large number of resampling replicates. The package requires some parallel backend to be loaded, using packages such as multicore, Rmpi or snow Author(s) Maintainer: Matthew Vavrek <matthew@matthewvavrek.com> par.nmds A parallelized function for estimating species diversity Description Usage Estimate the diversity of a sample(s) using a number of species diversity estimators. par.nmds(dmat, mindim = 1, maxdim = 2, nits = 10, iconf = 0, epsilon = 1e-12, maxit = 500, trace = FALSE Arguments dmat Lower triangle distance matrix mindim optional, the minmum number of dimensions to use for an analysis; default is 1 maxdim nits iconf epsilon maxit trace optional, the maximum number of dimensions to use for an analysis; default is 2 optional, the number of iterations; how many times the data should be initially placed at random; default is 10 optional, initial configuration. If not specified, then a random configuration is used. optional, acceptable difference in stress. optional, maximum number of iterations. if TRUE, will write progress indicator to the screen.

par.nmds 3 Details Non-Metric Multidimensional Scaling (NMDS) is designed to find an optimal arrangement for a set of points in a reduced dimensional space. Value conf : list of configurations. stress : list of final stress values. r2 : total variance explained by each configuration. The first results are for the lowest number of dimensions (total number is (mindim - maxdim + 1) * nits). Note This is slight modification of the nmds function found in the ecodist package, that has been changed to allow for parallelization of runs. This version of the function uses the foreach() function to parallelize the resampling loop, so any backend that can be used with that package can be used to enable the parallel processing with this package. Author(s) Sarah Goslee with modifications from Matthew Vavrek References The original nmds function used as the basis for this parallelized version comes from the ecodist package. Goslee, S.C., Urban, D.L. 2007. The ecodist Package for Dissimilarity-based Analysis of Ecological Data. Journal of Statistical Software. 22(7):1-19. See Also ecol.dist Examples ## Not run: #comparison of run times between the serial and parallel versions on the estimator #please note that this example is designed for a multicore OS X or Linux computer library(domc) registerdomc() data(fdata.mat) par.nmds(ecol.dist(fdata.mat)) ## End(Not run)

4 par.spp.est par.spp.est A parallelized function for estimating species diversity Description Estimate the diversity of a sample(s) using a number of species diversity estimators. Usage par.spp.est(x, rand = 10, abund = TRUE, counter = FALSE) Arguments x Details A vector, matrix or data frame with species as rows and locations/samples as columns rand The number of times to run the internal randomizations; default is set to 10 abund counter If the data is abundance or presence/absence; default is set to TRUE for abundance Whether or not to provide a running total of progress of randomizations This function will accept a vector, matrix or data frame of species by samples and return a large matrix with various species estimation values. Value Returns a table with the following column names if abund=true: N.obs S.obs S.obs(+95%) S.obs(-95%) Chao1 Chao1(upper) Chao1(lower) ACE ACE(upper) ACE(lower) Jack1 Jack1(upper) Jack1(lower) Total sample size Number of observed species Chao Species Estimation Abundance-based Coverage Estimator First Order Jacknife Estimator

par.spp.est 5 Returns a table with the following column names if abund=false: N.obs S.obs S.obs(+95%) S.obs(-95%) Chao2 Chao2(upper) Chao2(lower) ICE ICE(upper) ICE(lower) Jack1 Jack1(upper) Jack1(lower) Total sample size Number of observed species Chao Species Estimation Incidence-based Coverage Estimator First Order Jacknife Estimator Note This function can be very long to run due to its iterative nature, even when it is running in parallel. The randomizations are initially set to 10 so the process will run relatively quickly, but a low value for randomizations will not give nicely smoothed curves. Also, in some cases due to the nature of some of the functions, they provide no answer, such as is common with the Chao standard deviation. In this case, the Chao upper and lower bounds are simply 95% confidence intervals based on the actual Chao estimator. This version of the function uses the foreach() function to parallelize the resampling loop, so any backend that can be used with that package can be used to enable the parallel processing with this package. Author(s) Matthew Vavrek References The original idea for a program similar to this came from the extremely useful EstimateS program by Robert K. Colwell Colwell, R.K. 2010. EstimateS: Statistical estimation of species richness and shared species from samples. Version 8.2. User s Guide and application published at: http://purl.oclc.org/estimates. See Also chao1, jack1, bootstrap

6 par.spp.est Examples ## Not run: #comparison of run times between the serial and parallel versions on the estimator #please note that this example is designed for a multicore OS X or Linux computer library(domc) registerdomc() data(fdata.mat) system.time({spp.est(fdata.mat, rand = 100, abund = TRUE, counter = FALSE)}) system.time({par.spp.est(fdata.mat, rand = 100, abund = TRUE, counter = FALSE)}) #this example is for a multicore Windows computer, but HAS NOT BEEN TESTED library(dosnow) library(snow) cl <- makecluster(c("localhost","localhost"), type = "SOCK") registerdosnow(c1) data(fdata.mat) system.time({spp.est(fdata.mat, rand = 100, abund = TRUE, counter = FALSE)}) system.time({par.spp.est(fdata.mat, rand = 100, abund = TRUE, counter = FALSE)}) stopcluster(cl) ## End(Not run)

Index Topic package parfossil-package, 2 bootstrap, 5 chao1, 5 ecol.dist, 3 jack1, 5 par.nmds, 2 par.spp.est, 4 parfossil (parfossil-package), 2 parfossil-package, 2 7