Fat Tail Analysis and Package Fattailsr

Total Page:16

File Type:pdf, Size:1020Kb

Fat Tail Analysis and Package Fattailsr Fat Tail Analysis and Package FatTailsR [email protected] 9th R/Rmetrics Workshop 27June2015 Villa Hatt – Zürich [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 1 / 26 Outline 1 Introduction 2 Mathematics 3 Fat tails: Application in finance 4 Conclusion [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 2 / 26 About InModelia Since 2009: a small company located in Paris Consulting services in data analysis Design of experiments Multivariate nonlinear modeling Neural networks Times series Software development in R June 2014: 8th R/Rmetrics workshop First version of R package FatTailsR introducing Kiener distributions with symmetric (3 parameters) and asymmetric (4 parameters) fat tails June 2015: 9th R/Rmetrics workshop Second version of R package FatTailsR including 3 functions for parameter estimation R package FatTailsRplot including advanced plotting functions [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 3 / 26 Fat tails It is now well established that financial markets exhibit fat tails. It occurs on all markets. SP500 janv. 1957 − déc. 2013 SP500 janv. 1957 − déc. 2013 100 µ F(X) > 0.995 14349 points ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● ● ●● ●● ● ● ● X − 14350 points daily ●●●●●●●●●●●●●● 1.0 ●●●●●●●● ●●●●●● ●●●● ● ●●● ●●●●●●●● ●●●●● ● ●● ● ●● ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● ●●●●●●●●●●●●●● ●●●●●●●●●●●●●●●●●● ●●●●●●●●● ●●● ●●●● ●● 2975 points weekly ● ●● ●●●●●●●●●●●●●●●●●●●●●●●●● ●●●●●●●●●●●●● ●●●●●●●●●●●●●●● ●●●●● ●●● ● ●●●●●● ● ●● ●●●●●●●●●●●●●●●●●●●●●●●●● ●●●●●●●●●●●●●● ●●●●●●●●●●●●●●● ●●●●●●●●●●●●●●●●● ● ●● ●●●●●●●●●●●●●●●●●●●●● ●●●●●●●●●● ●●●●●●●●●●●● ●●●●●● ●●●●●●●●● ● ●● ●●●●●●●●●●●●●●●●●● ●●●●●●●● ●●●●●●●●●●●●● ●●●● ●●●●●● ● ●● ●●●●●●●●●●●●●●●● ●●●●●● ●●●●●●●●●●●● ●●●●●● ●●●●●●●● ● ●● ●●●●●●●●●●●●●●●●● ●●●●●● ●●●●●●●●●● ●●●●● ●●●● ● ● ●●●●●●●●●●●●●●●● ●●●●●● ●●●●●●●● ●●● ●●●●● ● ● ●●●●●●●●●●●●●●●● ●●●●● ●●●●●●● ●●●● ●●●●● ● ● ●●●●●●●●●●●●●●●● ●●●● ●●●●●●●● ●●● ●●● 685 points monthly ● ● ●●●●●●●●●●●●●● ●●●●● ●●●●●●●● ●●● ●●● ● ● ●●●●●●●●●●●●●● ●●●●● ●●●● ●●●● ●●●●●● ● ● ●●●●●●●●●●●●●● ●●●● ●●●●●●● ●●● ●●●● ● ● ●●●●●●●●●●●●● ●●●● ●●●●●● ●●● ●●●●● ● ● ●●●●●●●●●●●● ●●●● ●●●●● ●●● ●●● ● ● ●●●●●●●●●●●● ●●●●● ●●●●● ●●● ●●● ● ● ●●●●●●●●●●●● ●●●● ●●●●● ●● ●●●● ● ● ●●●●●●●●●●● ●●●●● ●●●● ●●● ●●●● ● ● ●●●●●●●●●● ●●● ●●●●● ●●● ●●●●● ● ● − ●●● ●●●●● ●●● ●●●● ●● ●●● 0.999 ● ● 1 ●●● ●●●● ●●● ●●● ● ●●● ● ● ●●●●●●●●●● ●● ●●●● ●● ● ● ● ●●●●●●●●● ●●● ●●●● ●● ●●● ● ● ●●● ●●●●● ●●● ●●●● ●● ● ● ● 10 ●●● ●●●●● ●●● ●●● ●● ●● ● ● ●● ●●● ●● ●●● ● ●● ● ● ●●● ●●●● ●●● ●●● ● ●● ● ● ●●● ●●●● ●●● ●●●● ●● ●●● ● ● ●●● ●●●●● ●●● ●●● ●● ●● ● ● ●●● ●●●●● ●● ●●●● ● ●●● ● ● ●●● ●●●●● ●● ●●● ●● ●●● ● ● ●●●● ●●●● ●●● ●●●●● ●● ● ● ● ●●● ●●●●● ●●● ●●● ●● ●● ● ● ●●● ●●●● ●● ●●●● ●● ● ● ● ●●● ●●●● ●● ●●● ●● ● ● ● ●●●●●●● ●● ●●●● ●● ●● ● ● ●● ●●●● ●● ●●● ● ● ● ● ● ●● ●●● ●●● ●● ●● ● ● ● ●●● ●●● ●●● ●●● ● ● ● ● ●●●●●● ●● ●● ● ● ● ● ●●●●●● ●● ●●● ● ●● ● ● ●●●●●●● ●● ●● ●● ● ● ● ●●●●● ●● ●● ● ●● ● ● ●●●●● ●● ●● ●● ● ● ● ●●●●●● ●● ●● ● ● ● ● ●●●●● ●●● ●●●● ● ● ● ● ●●●●● ● ● ● ● ● ● ●●●●● ●● ●● ● ● ● ● ●●●●● ●● ●● ● ● 0.997 ● ● ●●●●● ●● ●● ● ● ● ● ●●●●●● ● ●● ● ● ● ●●●●●● ●●● ●● ● ● ● ● ●●●●● ●● ●● ● ● ● ● ●●●●● ● ● ● ● ● ● ●●●●● ●● ●● ● ● ● ● ●● ● ●● ● ● ● ●●●●● ●● ●●● ● ● ● ● ●●●● ● ● ● ● ● ●●●● ● ●● ● ● ● − ●●●●●● ●● ● ● ● ● 2 ●●●● ● ● ● ● ● ●●●●●● ● ●● ● ● ● ● ●● ●● ●● ● ● ● ●●●●● ●● ● ● ● ● ● 10 ●●●● ● ●● ● ● ●● ● ● ● ● ●●●●● ● ● ● ● ●●●●● ● ● ● ● ● ● ●●● ● ● ● ● F(X) < 0.005 ●●●● ● ●● ● ●●● ● ● ● ● ● ●●●●● ● ● ● ● ● ● ● ●● ● ● ● ● ●●● ● ● ● ● ●●●● ● ● ● ● ●●●● ● ● 0.995 ● ● ●●● ● ● ● ●●●● ● ● ● ● ● ● ●●●● ● 4 6 8 10 ● ● ●● ● ● ● ●●● ● ● ● ● ●●● ● ● ● ●●● ● ● ●●● ● ● ● ● ● ●● ● ● 0.5 ● ● ● ● ● ● ● ● ● ● ● ● ● ●● ● ● ●● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ● ●● ●● ● ● ● ●● ● ● ● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● − ● ● ● ● ● 3 ● ● ● 0.004 ● ● ● ● ● ● ● ● ● 10 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 0.002 ● ● ● ● − ● ● 4 ● ● ● ● 10 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●● ● ●● ● ●● ● ●● ● ● ●● ● ●● ● ●●● ● ●●● ● ●●● ● ●●● ●●●● ●●●● ●●●●●●● ●●●●●●●●● ●●●●●●●●●● 0.000 0.0 ●●● ● ● ●●●● ● ●● ●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●● −20 −15 −10 −5 − 10 5 −1 0 1 2 −10 −5 0 5 10 10 10 10 10 Figure : (a) SP500 daily log-returns (b) SP500 daily, weekly and monthly log-returns in log-log scale black dots = negative returns, white circles = positive returns ® ! lim F (x) x ¡ lim 1 F (x) x ¡ ®, ! 3.5 x Æ j j x ¡ Æ ¼ !¡1 !Å1 [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 4 / 26 Symmetric distributions K1. Asymmetric distributions K2, K3, K4 Last year 1, we introduced a family of four probability distributions which deal with symmetric and asymmetric fat tails. These distributions were named Kiener distributions or, simply, distributions K1, K2, K3, K4. They combine two log-logistic quantile functions, one for each tail. The parameters are: 2®! 1 1 ³ 1 1 ´ median ¹, scale γ, left tail ®, right tail !, shape parameter · ® ! or harmonic mean · 2 ® ! Æ Å Æ Å ³ ´ distorsion ± and eccentricity ² defined by ± ² 1 1 1 with bonds 1 ± 1 and 1 ² 1 Æ · Æ 2 ¡ ® Å ! ¡ · Ç Ç · ¡ Ç Ç Quantile functions of distributions K2(¹,γ,®,!), K3(¹,γ,·,±), K4(¹,γ,·,²), K1(¹,γ,·) 2 3 µ ¶ 1 µ ¶ 1 à logit(p) logit(p) ! p ¡ ® p ! (K2) x(p) ¹ γκ4 5 ¹ γκ e¡ ® e ! Æ Å ¡ 1 p Å 1 p Æ Å ¡ Å ¡ ¡ 2 3 µ ¶ 1 µ ¶ 1 µ ¶± µ ¶ p · p · p logit(p) ±logit(p) (K3) x(p) ¹ γκ4 ¡ 5 ¹ 2γκsinh e Æ Å ¡ 1 p Å 1 p 1 p Æ Å · ¡ ¡ ¡ 2 1 1 3 ² µ p ¶ · µ p ¶ · µ p ¶ · µ logit(p) ¶ ² logit(p) (K4) x(p) ¹ γκ4 ¡ 5 ¹ 2γκsinh e · Æ Å ¡ 1 p Å 1 p 1 p Æ Å · ¡ ¡ ¡ 2 1 1 3 µ p ¶ · µ p ¶ · µ logit(p) ¶ (K1) x(p) ¹ γκ4 ¡ 5 ¹ 2γκsinh ¹ γkogit(p, ·) Æ Å ¡ 1 p Å 1 p Æ Å · Æ Å ¡ ¡ 1P. Kiener, Explicit models for bilateral fat-tailed distributions and applications in finance with the package FatTailsR, 8th R/Rmetrics Workshop, Paris, 2014. http://www.inmodelia.com/fattailsr-en.html [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 5 / 26 Distribution K1 and some properties ³ x ¹ ´ Probability and density functions of distribution K1(¹,γ,·), t asinh ¡ Æ 2γκ 1 1 1 F (x) ³ x ¹ ´ f (x) f (0) Æ · asinh ¡ Æ 4γcosh(t)(1 cosh(·t)) Æ 8γ 1 e¡ 2γκ Å Å Logit-probability: Density as a function of the probability: ³ x ¹ ´ 1 logit(p) logit(F (x)) ·asinh ¡ f (x) sech( )p (1 p) Æ 2γκ Æ 2γ · ¡ Conversion between parameters ®, !, ·, ±, ² 1 1 µ 1 1 ¶ ² 1 µ 1 1 ¶ 1 1 1 1 ® ! · · ± ± ± ² ¡ ® ! · Æ 2 ® Å ! Æ · Æ 2 ¡ ® Å ! ® Æ · ¡ ! Æ · Å Æ ® ! Æ 1 ² Æ 1 ² Å ¡ Å Property 1: Pareto aymptotic functions ¯ ¯ ® ¯ ¯ ! ¯ x ¹ ¯¡ ¯ x ¹ ¯¡ lim F (x) ¯ ¡ ¯ lim 1 F (x) ¯ ¡ ¯ x Æ ¯ γκ ¯ x ¡ Æ ¯ γκ ¯ !¡1 !Å1 Property 2: Karamata theorem about slowly ®-varying and !-varying functions x f (x) x f (x) lim ® lim ! x F (x) Æ¡ x 1 F (x) Æ !¡1 !Å1 ¡ [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 6 / 26 Comparaison with other distributions Distributions K1, K2, K3, K4 are similar, but more tractable and easier to use than 2 Generalized Tukey lambda distribution and Tadikamalla and Johnson LU distribution . K2 and K4 distributions (Kiener, 2014): " µ ¶ 1/® µ ¶1/!# µ ¶ p ¡ p logit(p) ² logit(p) x(p) ¹ γκ ¹ 2γκsinh e · Æ Å ¡ 1 p Å 1 p Æ Å · ¡ ¡ Generalized Tukey lambda distribution (Ramberg et Schmeiser, 1972): 1 h ¸ ¸ i x(p) ¸1 (1 p) 4 p 3 Æ Å ¸2 ¡ ¡ Å LU distribution (Tadikamalla and Johnson, 1982): µ γ 1 ¶ x(p) » ¸ sinh logit(p) Æ Å ¡ ± Å ± 2Non-central Student distribution and Cauchy distribution were already discussed last year [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 7 / 26 Figures related to symmetric distribution K1 Quantiles : K1 ( µ = 0, γ = 1, κ = ... ) Probabilités : K1 ( µ = 0, γ = 1, κ = ... ) + Gauss ( σ = 3.2 ) Densités : K1 ( µ = 0, γ = 1, κ = ... ) + Gauss ( σ = 3.2 ) 20 1.0 0.15 κ κ κ 0.6 0.6 0.6 1 1 1 1.5 1.5 1.5 10 2 2 2 3.2 3.2 3.2 0.10 10 10 10 Gauss Gauss 0 0.5 0.05 −10 Kogit −20 0.0 0.00 0.0 0.5 1.0 −15 −10 −5 0 5 10 15 −15 −10 −5 0 5 10 15 Dérivées des quantiles : K1 ( µ = 0, γ = 1, κ = ... ) Logit(Proba) : K1 ( µ = 0, γ = 1, κ = ... ) + Logistique + Gauss (σ = 3.2 ) LogDensités : K1 ( µ = 0, γ = 1, κ = ... ) + Logistique + Gauss (σ = 3.2 ) 200 6.9 κ κ −2 0.6 0.6 1 4.6 1 1.5 1.5 2 2 3.2 2.9 3.2 10 10 −4 Logistique Gauss 100 0.0 κ 0.6 logit(q.999) = 6.9 1 −6 −2.9 logit(q.99) = 4.6 1.5 logit(q.95) = 2.9 2 logit(q.50) = 0 3.2 −4.6 logit(q.05) = −2.9 10 logit(q.01) = −4.6 Logistique logit(q.001) = −6.9 Gauss 0 −6.9 −8 0.0 0.5 1.0 −15 −10 −5 0 5 10 15 −15 −10 −5 0 5 10 15 Figure : Distribution K1 : (a) Quantiles - (b) Cumulative functions (c) Densities (d) Quantile derivatives - (e) Logit of the cumulative functions - (f) Logdensities [email protected] Fat Tail Analysis and Package FatTailsR 9th R/Rmetrics Workshop 27June2015 8 / 26 Figures related to asymmetric distributions K2, K3, K4 Quantiles : K2 ( µ = 0, γ = 1, α = 2, ω = ... ) Quantiles + Probabilités : K2 ( µ = 0, γ = 1, α = 2, ω = ... ) Quantiles + Densités : K2 ( µ = 0, γ = 1, α = 2, ω = ... ) 15 1.0 0.200 ω ω ω 0.6 0.6 0.6 10 1 1 1 1.5 1.5 1.5 2 2 2 3.2 3.2 3.2 5 10 10 0.125 10 0 0.5 −5 −10 −15 0.0 0.000 0.0 0.5 1.0 −15 −10 −5 0 5 10 15 −15 −10 −5 0 5 10 15 Dérivées des quantiles : K2 ( µ = 0, γ = 1, α = 2, ω = ... ) Quantiles + Logit(Probabilités) : K2 ( µ = 0, γ = 1, α = 2, ω = ... ) Quantiles + Log−Densités :
Recommended publications
  • Research Brief March 2017 Publication #2017-16
    Research Brief March 2017 Publication #2017-16 Flourishing From the Start: What Is It and How Can It Be Measured? Kristin Anderson Moore, PhD, Child Trends Christina D. Bethell, PhD, The Child and Adolescent Health Measurement Introduction Initiative, Johns Hopkins Bloomberg School of Every parent wants their child to flourish, and every community wants its Public Health children to thrive. It is not sufficient for children to avoid negative outcomes. Rather, from their earliest years, we should foster positive outcomes for David Murphey, PhD, children. Substantial evidence indicates that early investments to foster positive child development can reap large and lasting gains.1 But in order to Child Trends implement and sustain policies and programs that help children flourish, we need to accurately define, measure, and then monitor, “flourishing.”a Miranda Carver Martin, BA, Child Trends By comparing the available child development research literature with the data currently being collected by health researchers and other practitioners, Martha Beltz, BA, we have identified important gaps in our definition of flourishing.2 In formerly of Child Trends particular, the field lacks a set of brief, robust, and culturally sensitive measures of “thriving” constructs critical for young children.3 This is also true for measures of the promotive and protective factors that contribute to thriving. Even when measures do exist, there are serious concerns regarding their validity and utility. We instead recommend these high-priority measures of flourishing
    [Show full text]
  • 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]
  • Percent R, X and Z Based on Transformer KVA
    SHORT CIRCUIT FAULT CALCULATIONS Short circuit fault calculations as required to be performed on all electrical service entrances by National Electrical Code 110-9, 110-10. These calculations are made to assure that the service equipment will clear a fault in case of short circuit. To perform the fault calculations the following information must be obtained: 1. Available Power Company Short circuit KVA at transformer primary : Contact Power Company, may also be given in terms of R + jX. 2. Length of service drop from transformer to building, Type and size of conductor, ie., 250 MCM, aluminum. 3. Impedance of transformer, KVA size. A. %R = Percent Resistance B. %X = Percent Reactance C. %Z = Percent Impedance D. KVA = Kilovoltamp size of transformer. ( Obtain for each transformer if in Bank of 2 or 3) 4. If service entrance consists of several different sizes of conductors, each must be adjusted by (Ohms for 1 conductor) (Number of conductors) This must be done for R and X Three Phase Systems Wye Systems: 120/208V 3∅, 4 wire 277/480V 3∅ 4 wire Delta Systems: 120/240V 3∅, 4 wire 240V 3∅, 3 wire 480 V 3∅, 3 wire Single Phase Systems: Voltage 120/240V 1∅, 3 wire. Separate line to line and line to neutral calculations must be done for single phase systems. Voltage in equations (KV) is the secondary transformer voltage, line to line. Base KVA is 10,000 in all examples. Only those components actually in the system have to be included, each component must have an X and an R value. Neutral size is assumed to be the same size as the phase conductors.
    [Show full text]
  • The Constraint on Public Debt When R<G but G<M
    The constraint on public debt when r < g but g < m Ricardo Reis LSE March 2021 Abstract With real interest rates below the growth rate of the economy, but the marginal prod- uct of capital above it, the public debt can be lower than the present value of primary surpluses because of a bubble premia on the debt. The government can run a deficit forever. In a model that endogenizes the bubble premium as arising from the safety and liquidity of public debt, more government spending requires a larger bubble pre- mium, but because people want to hold less debt, there is an upper limit on spending. Inflation reduces the fiscal space, financial repression increases it, and redistribution of wealth or income taxation have an unconventional effect on fiscal capacity through the bubble premium. JEL codes: D52, E62, G10, H63. Keywords: Debt limits, debt sustainability, incomplete markets, misallocation. * Contact: [email protected]. I am grateful to Adrien Couturier and Rui Sousa for research assistance, to John Cochrane, Daniel Cohen, Fiorella de Fiore, Xavier Gabaix, N. Gregory Mankiw, Jean-Charles Rochet, John Taylor, Andres Velasco, Ivan Werning, and seminar participants at the ASSA, Banque de France - PSE, BIS, NBER Economic Fluctuations group meetings, Princeton University, RIDGE, and University of Zurich for comments. This paper was written during a Lamfalussy fellowship at the BIS, whom I thank for its hospitality. This project has received funding from the European Union’s Horizon 2020 research and innovation programme, INFL, under grant number No. GA: 682288. First draft: November 2020. 1 Introduction Almost every year in the past century (and maybe longer), the long-term interest rate on US government debt (r) was below the growth rate of output (g).
    [Show full text]
  • Reading Source Data in R
    Reading Source Data in R R is useful for analyzing data, once there is data to be analyzed. Real datasets come from numerous places in various formats, many of which actually can be leveraged by the savvy R programmer with the right set of packages and practices. *** Note: It is possible to stream data in R, but it’s probably outside of the scope of most educational uses. We will only be worried about static data. *** Understanding the flow of data How many times have you accessed some information in a browser or software package and wished you had that data as a spreadsheet or csv instead? R, like most programming languages, can serve as the bridge between the information you have and the information you want. A significant amount of programming is an exercise in changing file formats. Source Result Data R Data To use R for data manipulation and analysis, source data must be read in, analyzed or manipulated as necessary, and the results are output in some meaningful format. This document focuses on the red arrow: How is source data read into R? The ability to access data is fundamental to building useful, productive systems, and is sometimes the biggest challenge Immediately preceding the scope of this document is the source data itself. It is left to the reader to understand the source data: How and where it is stored, in what file formats, file ownership and permissions, etc. Immediately beyond the scope of this document is actual programming. It is left to the reader to determine which tools and methods are best applied to the source data to yield the desired results.
    [Show full text]
  • R Markdown Cheat Sheet I
    1. Workflow R Markdown is a format for writing reproducible, dynamic reports with R. Use it to embed R code and results into slideshows, pdfs, html documents, Word files and more. To make a report: R Markdown Cheat Sheet i. Open - Open a file that ii. Write - Write content with the iii. Embed - Embed R code that iv. Render - Replace R code with its output and transform learn more at rmarkdown.rstudio.com uses the .Rmd extension. easy to use R Markdown syntax creates output to include in the report the report into a slideshow, pdf, html or ms Word file. rmarkdown 0.2.50 Updated: 8/14 A report. A report. A report. A report. A plot: A plot: A plot: A plot: Microsoft .Rmd Word ```{r} ```{r} ```{r} = = hist(co2) hist(co2) hist(co2) ``` ``` Reveal.js ``` ioslides, Beamer 2. Open File Start by saving a text file with the extension .Rmd, or open 3. Markdown Next, write your report in plain text. Use markdown syntax to an RStudio Rmd template describe how to format text in the final report. syntax becomes • In the menu bar, click Plain text File ▶ New File ▶ R Markdown… End a line with two spaces to start a new paragraph. *italics* and _italics_ • A window will open. Select the class of output **bold** and __bold__ you would like to make with your .Rmd file superscript^2^ ~~strikethrough~~ • Select the specific type of output to make [link](www.rstudio.com) with the radio buttons (you can change this later) # Header 1 • Click OK ## Header 2 ### Header 3 #### Header 4 ##### Header 5 ###### Header 6 4.
    [Show full text]
  • R for Beginners
    R for Beginners Emmanuel Paradis Institut des Sciences de l'Evolution´ Universit´e Montpellier II F-34095 Montpellier c´edex 05 France E-mail: [email protected] I thank Julien Claude, Christophe Declercq, Elo´ die Gazave, Friedrich Leisch, Louis Luangkesron, Fran¸cois Pinard, and Mathieu Ros for their comments and suggestions on earlier versions of this document. I am also grateful to all the members of the R Development Core Team for their considerable efforts in developing R and animating the discussion list `rhelp'. Thanks also to the R users whose questions or comments helped me to write \R for Beginners". Special thanks to Jorge Ahumada for the Spanish translation. c 2002, 2005, Emmanuel Paradis (12th September 2005) Permission is granted to make and distribute copies, either in part or in full and in any language, of this document on any support provided the above copyright notice is included in all copies. Permission is granted to translate this document, either in part or in full, in any language provided the above copyright notice is included. Contents 1 Preamble 1 2 A few concepts before starting 3 2.1 How R works . 3 2.2 Creating, listing and deleting the objects in memory . 5 2.3 The on-line help . 7 3 Data with R 9 3.1 Objects . 9 3.2 Reading data in a file . 11 3.3 Saving data . 14 3.4 Generating data . 15 3.4.1 Regular sequences . 15 3.4.2 Random sequences . 17 3.5 Manipulating objects . 18 3.5.1 Creating objects .
    [Show full text]
  • On the Phonetic Nature of the Latin R
    Eruditio Antiqua 5 (2013) : 21-29 ON THE PHONETIC NATURE OF THE LATIN R LUCIE PULTROVÁ CHARLES UNIVERSITY PRAGUE Abstract The article aims to answer the question of what evidence we have for the assertion repeated in modern textbooks concerned with Latin phonetics, namely that the Latin r was the so called alveolar trill or vibrant [r], such as e.g. the Italian r. The testimony of Latin authors is ambiguous: there is the evidence in support of this explanation, but also that testifying rather to the contrary. The sound changes related to the sound r in Latin afford evidence of the Latin r having indeed been alveolar, but more likely alveolar tap/flap than trill. Résumé L’article cherche à réunir les preuves que nous possédons pour la détermination du r latin en tant qu’une vibrante alvéolaire, ainsi que le r italien par exemple, une affirmation répétée dans des outils modernes traitant la phonétique latine. Les témoignages des auteurs antiques ne sont pas univoques : il y a des preuves qui soutiennent cette théorie, néanmoins d’autres tendent à la réfuter. Des changements phonétiques liés au phonème r démontrent que le r latin fut réellement alvéolaire, mais qu’il s’agissait plutôt d’une consonne battue que d’une vibrante. www.eruditio-antiqua.mom.fr LUCIE PULTROVÁ ON THE PHONETIC NATURE OF THE LATIN R The letter R of Latin alphabet denotes various phonetic entities generally called “rhotic consonants”. Some types of rhotic consonants are quite distant and it is not easy to define the one characteristic feature common to all rhotic consonants.
    [Show full text]
  • Proposal for Generation Panel for Latin Script Label Generation Ruleset for the Root Zone
    Generation Panel for Latin Script Label Generation Ruleset for the Root Zone Proposal for Generation Panel for Latin Script Label Generation Ruleset for the Root Zone Table of Contents 1. General Information 2 1.1 Use of Latin Script characters in domain names 3 1.2 Target Script for the Proposed Generation Panel 4 1.2.1 Diacritics 5 1.3 Countries with significant user communities using Latin script 6 2. Proposed Initial Composition of the Panel and Relationship with Past Work or Working Groups 7 3. Work Plan 13 3.1 Suggested Timeline with Significant Milestones 13 3.2 Sources for funding travel and logistics 16 3.3 Need for ICANN provided advisors 17 4. References 17 1 Generation Panel for Latin Script Label Generation Ruleset for the Root Zone 1. General Information The Latin script1 or Roman script is a major writing system of the world today, and the most widely used in terms of number of languages and number of speakers, with circa 70% of the world’s readers and writers making use of this script2 (Wikipedia). Historically, it is derived from the Greek alphabet, as is the Cyrillic script. The Greek alphabet is in turn derived from the Phoenician alphabet which dates to the mid-11th century BC and is itself based on older scripts. This explains why Latin, Cyrillic and Greek share some letters, which may become relevant to the ruleset in the form of cross-script variants. The Latin alphabet itself originated in Italy in the 7th Century BC. The original alphabet contained 21 upper case only letters: A, B, C, D, E, F, Z, H, I, K, L, M, N, O, P, Q, R, S, T, V and X.
    [Show full text]
  • Recommendation Itu-R S.1003-2*
    Recommendation ITU-R S.1003-2 (12/2010) Environmental protection of the geostationary-satellite orbit S Series Fixed-satellite service ii Rec. ITU-R S.1003-2 Foreword The role of the Radiocommunication Sector is to ensure the rational, equitable, efficient and economical use of the radio-frequency spectrum by all radiocommunication services, including satellite services, and carry out studies without limit of frequency range on the basis of which Recommendations are adopted. The regulatory and policy functions of the Radiocommunication Sector are performed by World and Regional Radiocommunication Conferences and Radiocommunication Assemblies supported by Study Groups. Policy on Intellectual Property Right (IPR) ITU-R policy on IPR is described in the Common Patent Policy for ITU-T/ITU-R/ISO/IEC referenced in Annex 1 of Resolution ITU-R 1. Forms to be used for the submission of patent statements and licensing declarations by patent holders are available from http://www.itu.int/ITU-R/go/patents/en where the Guidelines for Implementation of the Common Patent Policy for ITU-T/ITU-R/ISO/IEC and the ITU-R patent information database can also be found. Series of ITU-R Recommendations (Also available online at http://www.itu.int/publ/R-REC/en) Series Title BO Satellite delivery BR Recording for production, archival and play-out; film for television BS Broadcasting service (sound) BT Broadcasting service (television) F Fixed service M Mobile, radiodetermination, amateur and related satellite services P Radiowave propagation RA Radio astronomy RS Remote sensing systems S Fixed-satellite service SA Space applications and meteorology SF Frequency sharing and coordination between fixed-satellite and fixed service systems SM Spectrum management SNG Satellite news gathering TF Time signals and frequency standards emissions V Vocabulary and related subjects Note: This ITU-R Recommendation was approved in English under the procedure detailed in Resolution ITU-R 1.
    [Show full text]
  • Reference: Humulin R U-500 Information
    UM UPPER CHESAPEAKE HEALTH Humulin R U-500 SQ Insulin Place patient label here ADJUSTMENTS ONLY (Page 1 of 1) Open box equals Prescriber’s option; must check to order. Checked boxes = automatically initiated unless unchecked. Date: _______________________ Time: _______________ draft Apr 4, 2019 ****This order set is RESTRICTED to Endocrinologists only.**** – note new watermark Note: All dose changes after completion of the Humulin R U500 INITIAL order set, including “Now” doses, “One Time Only” doses, and Home medication DOSE ADJUSTMENTS requires use of this order set. Indications: This order set is indicated for Humulin R U-500 dose ADJUSTMENTS ONLY. It should NOT be used for the initial hospital orders for Humulin R U-500. (Use the Humulin R U-500 SQ INITIAL order set instead) It should NOT be used to continue a patient’s home medication. If a non-endocrinologist provider is placing these orders, CONSULT with the Endocrinologist is required before each dosage change. The INITIAL Humulin R U-500 medication orders MUST be discontinued. DO NOT discontinue the non- medication orders from the Humulin R U-500 INITIAL order set. Unit Secretary: Please transcribe the non-medication orders below into the Humulin R U500 SQ Insulin CPOE order set Provider: Reorder the complete 24h dosing schedule when making an adjustment to any dose. Humulin R-U500 Insulin Dose ADJUSTMENT Orders: Administer dose Provider: (Req’d) subcutaneously with U500 PEN 30 minutes prior to meal as indicated. Indicate name of endocrinologist Start new dose regimen with NEXT MEAL after this date/time: _____________(date) _________ (time) consulted about these dose revisions: _________________ Discontinue Fixed U500 previous Breakfast Lunch Dinner Bedtime Insulin Doses U500 insulin (or 0600 if Enteral (or 1800 if Enteral Feeding) Feeding) by Meal MEDICATION order.Maintain ____ units ____ units ____ units ____ units the associated orders.
    [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]