Package 'Fbasics'

Total Page:16

File Type:pdf, Size:1020Kb

Package 'Fbasics' Package ‘fBasics’ March 7, 2020 Title Rmetrics - Markets and Basic Statistics Date 2017-11-12 Version 3042.89.1 Author Diethelm Wuertz [aut], Tobias Setz [cre], Yohan Chalabi [ctb] Martin Maechler [ctb] Maintainer Tobias Setz <[email protected]> Description Provides a collection of functions to explore and to investigate basic properties of financial returns and related quantities. The covered fields include techniques of explorative data analysis and the investigation of distributional properties, including parameter estimation and hypothesis testing. Even more there are several utility functions for data handling and management. Depends R (>= 2.15.1), timeDate, timeSeries Imports stats, grDevices, graphics, methods, utils, MASS, spatial, gss, stabledist ImportsNote akima not in Imports because of non-GPL licence. Suggests akima, RUnit, tcltk LazyData yes License GPL (>= 2) Encoding UTF-8 URL https://www.rmetrics.org NeedsCompilation yes Repository CRAN Date/Publication 2020-03-07 11:06:10 UTC 1 2 R topics documented: R topics documented: fBasics-package . .4 acfPlot . 13 akimaInterp . 15 baseMethods . 17 BasicStatistics . 18 BoxPlot . 19 characterTable . 20 colorLocator . 20 colorPalette . 21 colorTable . 25 colVec . 25 correlationTest . 26 decor . 28 distCheck . 29 DistributionFits . 29 fBasics-deprecated . 31 fBasicsData . 32 fHTEST . 34 getS4 . 35 gh.............................................. 36 ghFit . 38 ghMode . 40 ghMoments . 41 ghRobMoments . 42 ghSlider . 43 ght.............................................. 44 ghtFit . 45 ghtMode . 46 ghtMoments . 47 ghtRobMoments . 48 gld.............................................. 49 gldFit . 51 gldMode . 52 gldRobMoments . 53 gridVector . 54 Heaviside . 55 hilbert . 56 HistogramPlot . 57 hyp ............................................. 59 hypFit . 61 hypMode . 62 hypMoments . 63 hypRobMoments . 65 hypSlider . 66 Ids.............................................. 66 interactivePlot . 67 R topics documented: 3 inv.............................................. 68 krigeInterp . 69 kron............................................. 70 ks2Test . 71 lcg.............................................. 72 linearInterp . 74 listDescription . 75 listFunctions . 76 listIndex . 76 locationTest . 77 maxdd . 79 nig.............................................. 81 nigFit . 82 nigMode . 84 nigMoments . 85 nigRobMoments . 86 nigShapeTriangle . 87 nigSlider . 88 norm............................................. 89 NormalityTests . 90 normRobMoments . 94 pascal . 95 pdl.............................................. 96 positiveDefinite . 97 print . 97 QuantileQuantilePlots . 98 ReturnSeriesGUI . 100 rk .............................................. 100 rowStats . 101 sampleLMoments . 103 sampleRobMoments . 103 scaleTest . 104 ScalingLawPlot . 106 sgh.............................................. 108 sghFit . 109 sght ............................................. 110 snig ............................................. 112 snigFit . 113 ssd.............................................. 114 ssdFit . 116 StableSlider . 117 symbolTable . 117 TimeSeriesPlots . 118 tr............................................... 120 triang . 120 tsHessian . 121 tslag . 122 varianceTest . 122 4 fBasics-package vec.............................................. 124 Index 126 fBasics-package Portfolio Modelling, Optimization and Backtesting Description The Rmetrics "fBasics" package is a collection of functions to explore and to investigate basic properties of financial returns and related quantities. The covered fields include techniques of explorative data analysis and the investigation of distribu- tional properties, including parameter estimation and hypothesis testing. Evenmore there are several utility functions for data handling and managemnet. Details Package: \tab fBasics\cr Type: \tab Package\cr Date: \tab 2014\cr License: \tab.
Recommended publications
  • Tinn-R Team Has a New Member Working on the Source Code: Wel- Come Huashan Chen
    Editus eBook Series Editus eBooks is a series of electronic books aimed at students and re- searchers of arts and sciences in general. Tinn-R Editor (2010 1. ed. Rmetrics) Tinn-R Editor - GUI forR Language and Environment (2014 2. ed. Editus) José Cláudio Faria Philippe Grosjean Enio Galinkin Jelihovschi Ricardo Pietrobon Philipe Silva Farias Universidade Estadual de Santa Cruz GOVERNO DO ESTADO DA BAHIA JAQUES WAGNER - GOVERNADOR SECRETARIA DE EDUCAÇÃO OSVALDO BARRETO FILHO - SECRETÁRIO UNIVERSIDADE ESTADUAL DE SANTA CRUZ ADÉLIA MARIA CARVALHO DE MELO PINHEIRO - REITORA EVANDRO SENA FREIRE - VICE-REITOR DIRETORA DA EDITUS RITA VIRGINIA ALVES SANTOS ARGOLLO Conselho Editorial: Rita Virginia Alves Santos Argollo – Presidente Andréa de Azevedo Morégula André Luiz Rosa Ribeiro Adriana dos Santos Reis Lemos Dorival de Freitas Evandro Sena Freire Francisco Mendes Costa José Montival Alencar Junior Lurdes Bertol Rocha Maria Laura de Oliveira Gomes Marileide dos Santos de Oliveira Raimunda Alves Moreira de Assis Roseanne Montargil Rocha Silvia Maria Santos Carvalho Copyright©2015 by JOSÉ CLÁUDIO FARIA PHILIPPE GROSJEAN ENIO GALINKIN JELIHOVSCHI RICARDO PIETROBON PHILIPE SILVA FARIAS Direitos desta edição reservados à EDITUS - EDITORA DA UESC A reprodução não autorizada desta publicação, por qualquer meio, seja total ou parcial, constitui violação da Lei nº 9.610/98. Depósito legal na Biblioteca Nacional, conforme Lei nº 10.994, de 14 de dezembro de 2004. CAPA Carolina Sartório Faria REVISÃO Amek Traduções Dados Internacionais de Catalogação na Publicação (CIP) T591 Tinn-R Editor – GUI for R Language and Environment / José Cláudio Faria [et al.]. – 2. ed. – Ilhéus, BA : Editus, 2015. xvii, 279 p. ; pdf Texto em inglês.
    [Show full text]
  • Navigating the R Package Universe by Julia Silge, John C
    CONTRIBUTED RESEARCH ARTICLES 558 Navigating the R Package Universe by Julia Silge, John C. Nash, and Spencer Graves Abstract Today, the enormous number of contributed packages available to R users outstrips any given user’s ability to understand how these packages work, their relative merits, or how they are related to each other. We organized a plenary session at useR!2017 in Brussels for the R community to think through these issues and ways forward. This session considered three key points of discussion. Users can navigate the universe of R packages with (1) capabilities for directly searching for R packages, (2) guidance for which packages to use, e.g., from CRAN Task Views and other sources, and (3) access to common interfaces for alternative approaches to essentially the same problem. Introduction As of our writing, there are over 13,000 packages on CRAN. R users must approach this abundance of packages with effective strategies to find what they need and choose which packages to invest time in learning how to use. At useR!2017 in Brussels, we organized a plenary session on this issue, with three themes: search, guidance, and unification. Here, we summarize these important themes, the discussion in our community both at useR!2017 and in the intervening months, and where we can go from here. Users need options to search R packages, perhaps the content of DESCRIPTION files, documenta- tion files, or other components of R packages. One author (SG) has worked on the issue of searching for R functions from within R itself in the sos package (Graves et al., 2017).
    [Show full text]
  • Introduction to Ggplot2
    Introduction to ggplot2 Dawn Koffman Office of Population Research Princeton University January 2014 1 Part 1: Concepts and Terminology 2 R Package: ggplot2 Used to produce statistical graphics, author = Hadley Wickham "attempt to take the good things about base and lattice graphics and improve on them with a strong, underlying model " based on The Grammar of Graphics by Leland Wilkinson, 2005 "... describes the meaning of what we do when we construct statistical graphics ... More than a taxonomy ... Computational system based on the underlying mathematics of representing statistical functions of data." - does not limit developer to a set of pre-specified graphics adds some concepts to grammar which allow it to work well with R 3 qplot() ggplot2 provides two ways to produce plot objects: qplot() # quick plot – not covered in this workshop uses some concepts of The Grammar of Graphics, but doesn’t provide full capability and designed to be very similar to plot() and simple to use may make it easy to produce basic graphs but may delay understanding philosophy of ggplot2 ggplot() # grammar of graphics plot – focus of this workshop provides fuller implementation of The Grammar of Graphics may have steeper learning curve but allows much more flexibility when building graphs 4 Grammar Defines Components of Graphics data: in ggplot2, data must be stored as an R data frame coordinate system: describes 2-D space that data is projected onto - for example, Cartesian coordinates, polar coordinates, map projections, ... geoms: describe type of geometric objects that represent data - for example, points, lines, polygons, ... aesthetics: describe visual characteristics that represent data - for example, position, size, color, shape, transparency, fill scales: for each aesthetic, describe how visual characteristic is converted to display values - for example, log scales, color scales, size scales, shape scales, ..
    [Show full text]
  • Sharing and Organizing Research Products As R Packages Matti Vuorre1 & Matthew J
    Sharing and organizing research products as R packages Matti Vuorre1 & Matthew J. C. Crump2 1 Oxford Internet Institute, University of Oxford, United Kingdom 2 Department of Psychology, Brooklyn College of CUNY, New York USA A consensus on the importance of open data and reproducible code is emerging. How should data and code be shared to maximize the key desiderata of reproducibility, permanence, and accessibility? Research assets should be stored persistently in formats that are not software restrictive, and documented so that others can reproduce and extend the required computations. The sharing method should be easy to adopt by already busy researchers. We suggest the R package standard as a solution for creating, curating, and communicating research assets. The R package standard, with extensions discussed herein, provides a format for assets and metadata that satisfies the above desiderata, facilitates reproducibility, open access, and sharing of materials through online platforms like GitHub and Open Science Framework. We discuss a stack of R resources that help users create reproducible collections of research assets, from experiments to manuscripts, in the RStudio interface. We created an R package, vertical, to help researchers incorporate these tools into their workflows, and discuss its functionality at length in an online supplement. Together, these tools may increase the reproducibility and openness of psychological science. Keywords: reproducibility; research methods; R; open data; open science Word count: 5155 Introduction package standard, with additional R authoring tools, provides a robust framework for organizing and sharing reproducible Research projects produce experiments, data, analyses, research products. manuscripts, posters, slides, stimuli and materials, computa- Some advances in data-sharing standards have emerged: It tional models, and more.
    [Show full text]
  • Rkward: a Comprehensive Graphical User Interface and Integrated Development Environment for Statistical Analysis with R
    JSS Journal of Statistical Software June 2012, Volume 49, Issue 9. http://www.jstatsoft.org/ RKWard: A Comprehensive Graphical User Interface and Integrated Development Environment for Statistical Analysis with R Stefan R¨odiger Thomas Friedrichsmeier Charit´e-Universit¨atsmedizin Berlin Ruhr-University Bochum Prasenjit Kapat Meik Michalke The Ohio State University Heinrich Heine University Dusseldorf¨ Abstract R is a free open-source implementation of the S statistical computing language and programming environment. The current status of R is a command line driven interface with no advanced cross-platform graphical user interface (GUI), but it includes tools for building such. Over the past years, proprietary and non-proprietary GUI solutions have emerged, based on internal or external tool kits, with different scopes and technological concepts. For example, Rgui.exe and Rgui.app have become the de facto GUI on the Microsoft Windows and Mac OS X platforms, respectively, for most users. In this paper we discuss RKWard which aims to be both a comprehensive GUI and an integrated devel- opment environment for R. RKWard is based on the KDE software libraries. Statistical procedures and plots are implemented using an extendable plugin architecture based on ECMAScript (JavaScript), R, and XML. RKWard provides an excellent tool to manage different types of data objects; even allowing for seamless editing of certain types. The objective of RKWard is to provide a portable and extensible R interface for both basic and advanced statistical and graphical analysis, while not compromising on flexibility and modularity of the R programming environment itself. Keywords: GUI, integrated development environment, plugin, R.
    [Show full text]
  • R Generation [1] 25
    IN DETAIL > y <- 25 > y R generation [1] 25 14 SIGNIFICANCE August 2018 The story of a statistical programming they shared an interest in what Ihaka calls “playing academic fun language that became a subcultural and games” with statistical computing languages. phenomenon. By Nick Thieme Each had questions about programming languages they wanted to answer. In particular, both Ihaka and Gentleman shared a common knowledge of the language called eyond the age of 5, very few people would profess “Scheme”, and both found the language useful in a variety to have a favourite letter. But if you have ever been of ways. Scheme, however, was unwieldy to type and lacked to a statistics or data science conference, you may desired functionality. Again, convenience brought good have seen more than a few grown adults wearing fortune. Each was familiar with another language, called “S”, Bbadges or stickers with the phrase “I love R!”. and S provided the kind of syntax they wanted. With no blend To these proud badge-wearers, R is much more than the of the two languages commercially available, Gentleman eighteenth letter of the modern English alphabet. The R suggested building something themselves. they love is a programming language that provides a robust Around that time, the University of Auckland needed environment for tabulating, analysing and visualising data, one a programming language to use in its undergraduate statistics powered by a community of millions of users collaborating courses as the school’s current tool had reached the end of its in ways large and small to make statistical computing more useful life.
    [Show full text]
  • R Programming for Data Science
    R Programming for Data Science Roger D. Peng This book is for sale at http://leanpub.com/rprogramming This version was published on 2015-07-20 This is a Leanpub book. Leanpub empowers authors and publishers with the Lean Publishing process. Lean Publishing is the act of publishing an in-progress ebook using lightweight tools and many iterations to get reader feedback, pivot until you have the right book and build traction once you do. ©2014 - 2015 Roger D. Peng Also By Roger D. Peng Exploratory Data Analysis with R Contents Preface ............................................... 1 History and Overview of R .................................... 4 What is R? ............................................ 4 What is S? ............................................ 4 The S Philosophy ........................................ 5 Back to R ............................................ 5 Basic Features of R ....................................... 6 Free Software .......................................... 6 Design of the R System ..................................... 7 Limitations of R ......................................... 8 R Resources ........................................... 9 Getting Started with R ...................................... 11 Installation ............................................ 11 Getting started with the R interface .............................. 11 R Nuts and Bolts .......................................... 12 Entering Input .......................................... 12 Evaluation ...........................................
    [Show full text]
  • R: a Swiss Army Knife for Market Research
    R: A Swiss Army Knife for Market Research Enhancing work practices with R Martin Chan – Consultant, Rainmakers CSI 12th September, 2018 1 2 This presentation is about using R in business environments or conditions where its usage is less intuitively suitable… … and a story of how R has been transformative for our work practices 2 3 Who are we? What do we do? 3 4 What How Where Answer strategic Estimate size of market, and size of Across multiple questions to help our opportunity, anticipating trends industries and clients grow profitably markets Utilise resources available within an Inform strategic decisions organisation (e.g. stakeholder knowledge, • FMCG through creative and existing research) • Finance & analytical thinking Insurance Develop consumer targeting frameworks – • Travel identify core consumers and areas of • Media opportunities 4 5 A team with a mix of backgrounds from strategy, brand planning, marketing, research… (where analytics is a key, but only one of the components of our work) 5 6 What’s different about the use of R in our work? 6 Challenges of Using R Nature of data: Nature of U&A Client 1 2 3 disparate, patchy data requirement and expectations (of outputs) U&A – research with the aim to understand a market and identify growth opportunities by answering questions on whom to target, with what, and how. (Source: https://www.ipsos.com/en/ipsos-encyclopedia- 7 usage-attitude-surveys-ua) Nature of data: 1 disparate, patchy 8 9 Historical survey data – often designed for different purposes Stakeholder Interviews Our data come (Qualitative) together in and collected from different samples different forms, like pieces of Population / Demographic data (from census, World Bank Customer Interviews (Qualitative) JIGSAW research etc.) Pricing data Historical segmentation work (e.g.
    [Show full text]
  • An Introduction to R Graphics 4. Ggplot2
    Data Visualization in R 4. ggplot2 Michael Friendly SCS Short Course Sep/Oct, 2018 http://www.datavis.ca/courses/RGraphics/ Resources: Books Hadley Wickham, ggplot2: Elegant graphics for data analysis, 2nd Ed. 1st Ed: Online, http://ggplot2.org/book/ ggplot2 Quick Reference: http://sape.inf.usi.ch/quick-reference/ggplot2/ Complete ggplot2 documentation: http://docs.ggplot2.org/current/ Winston Chang, R Graphics Cookbook: Practical Recipes for Visualizing Data Cookbook format, covering common graphing tasks; the main focus is on ggplot2 R code from book: http://www.cookbook-r.com/Graphs/ Download from: http://ase.tufts.edu/bugs/guide/assets/R%20Graphics%20Cookbook.pdf Antony Unwin, Graphical Data Analysis with R R code: http://www.gradaanwr.net/ 2 Resources: Cheat sheets • Data visualization with ggplot2: https://www.rstudio.com/wp-content/uploads/2016/11/ggplot2- cheatsheet-2.1.pdf • Data transformation with dplyr: https://github.com/rstudio/cheatsheets/raw/master/source/pdfs/data- transformation-cheatsheet.pdf 3 What is ggplot2? • ggplot2 is Hadley Wickham’s R package for producing “elegant graphics for data analysis” . It is an implementation of many of the ideas for graphics introduced in Lee Wilkinson’s Grammar of Graphics . These ideas and the syntax of ggplot2 help to think of graphs in a new and more general way . Produces pleasing plots, taking care of many of the fiddly details (legends, axes, colors, …) . It is built upon the “grid” graphics system . It is open software, with a large number of gg_ extensions. See: http://www.ggplot2-exts.org/gallery/ 4 Follow along • From the course web page, click on the script gg-cars.R, http://www.datavis.ca/courses/RGraphics/R/gg-cars.R • Select all (ctrl+A) and copy (ctrl+C) to the clipboard • In R Studio, open a new R script file (ctrl+shift+N) • Paste the contents (ctrl+V) • Run the lines (ctrl+Enter) to along with me ggplot2 vs base graphics Some things that should be simple are harder than you’d like in base graphics Here, I’m plotting gas mileage (mpg) vs.
    [Show full text]
  • The R Journal Volume 3/2, December 2011
    The Journal Volume 3/2, December 2011 A peer-reviewed, open-access publication of the R Foundation for Statistical Computing Contents Editorial..................................................3 Contributed Research Articles Creating and Deploying an Application with (R)Excel and R...................5 glm2: Fitting Generalized Linear Models with Convergence Problems.............. 12 Implementing the Compendium Concept with Sweave and DOCSTRIP............. 16 Watch Your Spelling!........................................... 22 Ckmeans.1d.dp: Optimal k-means Clustering in One Dimension by Dynamic Programming 29 Nonparametric Goodness-of-Fit Tests for Discrete Null Distributions............... 34 Using the Google Visualisation API with R.............................. 40 GrapheR: a Multiplatform GUI for Drawing Customizable Graphs in R............. 45 rainbow: An R Package for Visualizing Functional Time Series.................. 54 Programmer’s Niche Portable C++ for R Packages...................................... 60 News and Notes R’s Participation in the Google Summer of Code 2011....................... 64 Conference Report: useR! 2011..................................... 68 Forthcoming Events: useR! 2012.................................... 70 Changes in R............................................... 72 Changes on CRAN............................................ 84 News from the Bioconductor Project.................................. 86 R Foundation News........................................... 87 2 The Journal is a peer-reviewed publication
    [Show full text]
  • R Programming
    Chapter 6 R Programming 6.1 R, Matlab, and Python R is a programming language especially designed for data analysis and data visualization. In some cases it is more convenient to use R than C++ or Java, making R an important data analysis tool. We describe below similarities and di↵erences between R and its close relatives Matlab and Python. R is similar to Matlab and Python in the following ways: • They run inside an interactive shell in their default setting. In some cases this shell is a complete graphical user interface (GUI). • They emphasize storing and manipulating data as multidimensional arrays. • They interface packages featuring functionalities, both generic, such as ma- trix operations, SVD, eigenvalues solvers, random number generators, and optimization routines; and specialized, such as kernel smoothing and sup- port vector machines. • They exhibit execution time slower than that of C, C++, and Fortran, and are thus poorly suited for analyzing massive1 data. • They can interface with native C++ code, supporting large scale data analysis by implementing computational bottlenecks in C or C++. The three languages di↵er in the following ways: • R and Python are open-source and freely available for Windows, Linux, and Mac, while Matlab requires an expensive license. • R, unlike Matlab, features ease in extending the core language by writing new packages, as well as in installing packages contributed by others. 1The slowdown can be marginal or significant, depending on the program’s implementation. Vectorized code may improve computational efficiency by performing basic operations on entire arrays rather than on individual array elements inside nested loops.
    [Show full text]
  • Evaluating the Design of the R Language Objects and Functions for Data Analysis
    Evaluating the Design of the R Language Objects and Functions For Data Analysis Floreal´ Morandat Brandon Hill Leo Osvald Jan Vitek Purdue University Abstract. R is a dynamic language for statistical computing that combines lazy functional features and object-oriented programming. This rather unlikely lin- guistic cocktail would probably never have been prepared by computer scientists, yet the language has become surprisingly popular. With millions of lines of R code available in repositories, we have an opportunity to evaluate the fundamental choices underlying the R language design. Using a combination of static and dynamic program analysis we assess the success of different language features. 1 Introduction Over the last decade, the R project has become a key tool for implementing sophisticated data analysis algorithms in fields ranging from computational biology [7] to political science [11]. At the heart of the R project is a dynamic, lazy, functional, object-oriented programming language with a rather unusual combination of features. This computer language, commonly referred to as the R language [15,16] (or simply R), was designed in 1993 by Ross Ihaka and Robert Gentleman [10] as a successor to S [1]. The main differences with its predecessor, which had been designed at Bell labs by John Chambers, were the open source nature of the R project, vastly better performance, and, at the language level, lexical scoping borrowed from Scheme and garbage collection [1]. Released in 1995 under a GNU license, it rapidly became the lingua franca for statistical data analysis. Today, there are over 4 000 packages available from repositories such as CRAN and Bioconductor.1 The R-forge web site lists 1 242 projects.
    [Show full text]