<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Statistics on R Views</title>
    <link>https://rviews.rstudio.com/tags/statistics/</link>
    <description>Recent content in Statistics on R Views</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 17 Jun 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://rviews.rstudio.com/tags/statistics/" rel="self" type="application/rss+xml" />
    
    
    
    
    <item>
      <title>Frank&#39;s R Workflow</title>
      <link>https://rviews.rstudio.com/2022/06/17/frank-s-workflow/</link>
      <pubDate>Fri, 17 Jun 2022 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2022/06/17/frank-s-workflow/</guid>
      <description>
        &lt;p&gt;&lt;a href=&#34;https://www.fharrell.com/&#34;&gt;Frank Harrell&amp;rsquo;s&lt;/a&gt; new eBook, &lt;a href=&#34;http://hbiostat.org/rflow/&#34;&gt;&lt;em&gt;R Workflow&lt;/em&gt;&lt;/a&gt;, which aims to: &amp;ldquo;to foster best practices in reproducible data documentation and manipulation, statistical analysis, graphics, and reporting&amp;rdquo; is an ambitious document that is notable on multiple levels.&lt;/p&gt;

&lt;p&gt;To begin with, the workflow itself is much more than a simple progression of logical steps.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;workflow.png&#34; height = &#34;500&#34; width=&#34;100%&#34; alt=&#34;Diagram of Reproducible Research Workflow&#34;&gt;&lt;/p&gt;

&lt;p&gt;This workflow is clearly the result of a process forged through trial and error by a master statistician over many years. As the diagram indicates, the document takes a holistic viewpoint of a statistical analysis covering document preparation, data manipulation, statistical practice computational concerns, and more.&lt;/p&gt;

&lt;p&gt;Then, there is the synthesis of a wide range of content into a succinct, very readable exposition that dips in to some very deep topics. Frank&amp;rsquo;s examples are streamlined presentations of analyses and code that are both sophisticated an practical. The missing value section suggests a whole array of analyses through a careful presentation of plots, and the section on data checking introduces a level of automation beyond what is commonly done.&lt;/p&gt;

&lt;p&gt;Frank&amp;rsquo;s writing style is clear, informal and from the perspective of a teacher who wants to show you some cool things along with the basics. For example, don&amp;rsquo;t miss the &lt;em&gt;if Trick&lt;/em&gt; in section 2.4.3.&lt;/p&gt;

&lt;p&gt;I should mention that Frank&amp;rsquo;s eBook is not a &lt;em&gt;tidyverse&lt;/em&gt; presentation. The code examples are built around base R, Frank&amp;rsquo;s &lt;code&gt;Hmisc&lt;/code&gt; and &lt;code&gt;rms&lt;/code&gt; packages and an eclectic mix of  packages that include &lt;code&gt;data.table&lt;/code&gt;. &lt;code&gt;plotly&lt;/code&gt; and &lt;em&gt;tidyverse&lt;/em&gt; packages &lt;code&gt;haven&lt;/code&gt; and  &lt;code&gt;ggplot2&lt;/code&gt;. In a way, this selection of packages reflects the evolution of R itself.  For example, as with many popular R packages,  &lt;code&gt;Hmisc&lt;/code&gt; most likely started out as Frank&amp;rsquo;s personal tool kit. However, after many years of Frank&amp;rsquo;s deep commitment to using R and contributing R tools, which includes seventy versions of &lt;code&gt;Hmisc&lt;/code&gt; in nineteen years, the package has become a fundamental resource. (Have a look at the reverse depends, imports, and suggests.) Also, the mix of packages with different design philosophies underlying &lt;em&gt;R Workflow&lt;/em&gt; reflects the flexibility of the R language and the organic growth of the R ecosystem.&lt;/p&gt;

&lt;p&gt;Perhaps the most striking aspect of the eBook is the way Frank uses &lt;a href=&#34;https://quarto.org/&#34;&gt;&lt;code&gt;Quarto&lt;/code&gt;&lt;/a&gt;, &lt;code&gt;knitr&lt;/code&gt; and &lt;code&gt;Hmisc&lt;/code&gt; to build an elegant reproducible document about building reproducible documents. For example, &lt;code&gt;Quarto&lt;/code&gt; permits the effective placement of plots in the right margins of the document, and the &lt;code&gt;Quarto&lt;/code&gt; &lt;em&gt;callouts&lt;/em&gt; in Section 3.4 enable the mini tutorials that include &lt;em&gt;Special Considerations for Latex/pdf&lt;/em&gt; and &lt;em&gt;Using Tooltips with Mermaid&lt;/em&gt; to be embedded in the document without interrupting its flow. Moreover, along with functions like &lt;code&gt;Hmisc::getHdata()&lt;/code&gt; and &lt;code&gt;Hmisc::getRs()&lt;/code&gt;, &lt;code&gt;Quarto&lt;/code&gt; enables the document to achieve a high level of reproducibility by pulling data and code directly from GitHub repositories.&lt;/p&gt;

&lt;p&gt;Not only can Frank&amp;rsquo;s &lt;em&gt;R Workflow&lt;/em&gt; teach you some serious statistics, but studying its construction will take you a long way towards building aesthetically pleasing reproducible documents.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Frank Harrell will be delivering a keynote address on August 26th at the upcoming &lt;a href=&#34;https://events.linuxfoundation.org/r-medicine/&#34;&gt;R/Medicine&lt;/a&gt; conference.&lt;/em&gt;&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2022/06/17/frank-s-workflow/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>March 2021: &#34;Top 40&#34; New CRAN Packages</title>
      <link>https://rviews.rstudio.com/2021/04/22/march-2021-top-40-new-cran-packages/</link>
      <pubDate>Thu, 22 Apr 2021 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2021/04/22/march-2021-top-40-new-cran-packages/</guid>
      <description>
        

&lt;p&gt;By my count, two hundred twenty-one new packages &lt;em&gt;stuck&lt;/em&gt; to CRAN in March 2021.&lt;sup&gt;1&lt;/sup&gt; Here are my &amp;ldquo;Top 40&amp;rdquo; selections in twelve categories: Computational Methods, Data, Engineering, Genomics, Machine Learning, Medicine, Music, Networks, Science, Statistics, Utility, and Visualization. Two of these categories Engineering and Music have only one entry each. However, I decided to give them their own category in order to draw attention to  the use of R outside of the mainstream, and I have always lamented the fate of the &lt;em&gt;Miscellaneous&lt;/em&gt;. In the same spirit, note that the complete works of &lt;em&gt;the Bard&lt;/em&gt; appear in the Data category and that due to &lt;code&gt;tidypaleo&lt;/code&gt; &lt;em&gt;Paleoenvironmental&lt;/em&gt; is now &lt;em&gt;a thing&lt;/em&gt; in R.&lt;/p&gt;

&lt;h3 id=&#34;computational-methods&#34;&gt;Computational Methods&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=gamlss.foreach&#34;&gt;gamlss&lt;/a&gt; v1.0-5: Implements computationally intensive calculations for Generalized Additive Models for location, scale, and shape as described in &lt;a href=&#34;https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1467-9876.2005.00510.x&#34;&gt;Rigby &amp;amp; Stasinopoulos (2005)&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=waydown&#34;&gt;waydown&lt;/a&gt; v1.1.0: Implements an algorithm based on the classical Helmholtz decomposition to obtain an approximate potential function for non gradient fields. See &lt;a href=&#34;https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1007788&#34;&gt;Rodríguez-Sánchez (2020)&lt;/a&gt; for background and the &lt;a href=&#34;https://cran.r-project.org/web/packages/waydown/vignettes/examples.pdf&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;waydown.png&#34; height = &#34;400&#34; width=&#34;600&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;data&#34;&gt;Data&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=aopdata&#34;&gt;aopdata&lt;/a&gt; v0.2.1: Provides functions to download data from the &lt;a href=&#34;https://www.ipea.gov.br/acessooportunidades/en/&#34;&gt;Access to Opportunities Project&lt;/a&gt; (AOP) which includes annual estimates of access to employment, health and education services by transport mode, as well as data on the spatial distribution of population, schools and health-care facilities at a fine spatial resolution for all cities included in the study. There is an &lt;a href=&#34;https://cran.r-project.org/web/packages/aopdata/vignettes/intro_to_aopdata.html&#34;&gt;Introduction&lt;/a&gt; to the package, and there are vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/aopdata/vignettes/access_inequality.html&#34;&gt;Analyzing Inequality&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/aopdata/vignettes/access_maps.html&#34;&gt;Mapping Urban Accessibility&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/aopdata/vignettes/landuse_maps.html&#34;&gt;Mapping Pooulation and Land Use&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;aopdata.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=bardr&#34;&gt;bardr&lt;/a&gt; v0.0.9: Provides R data structures for Shakespeare&amp;rsquo;s complete works, as provided by &lt;a href=&#34;https:www.gutenberg.org/ebooks/100&#34;&gt;Project Gutenberg&lt;/a&gt;. See &lt;a href=&#34;https://cran.r-project.org/web/packages/bardr/readme/README.html&#34;&gt;README&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=metro&#34;&gt;metro&lt;/a&gt; v0.9.1: Provides access to the &lt;a href=&#34;https://developer.wmata.com/&#34;&gt;Metro Transparent Data Sets API&lt;/a&gt; published by the Washington Metropolitan Area Transit Authority, the  government agency operating light rail and passenger buses in the Washington D.C. area. See &lt;a href=&#34;https://cran.r-project.org/web/packages/metro/readme/README.html&#34;&gt;README&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=RAQSAPI&#34;&gt;RAQSAPI&lt;/a&gt; v2.0.1: Provides functions to retrieve air monitoring data and associated metadata from the US Environmental Protection Agency&amp;rsquo;s &lt;a href=&#34;https://aqs.epa.gov/aqsweb/documents/data_api.html&#34;&gt;Air Quality System Service&lt;/a&gt;. There are several short vignettes including an &lt;a href=&#34;https://cran.r-project.org/web/packages/RAQSAPI/vignettes/Intro.html&#34;&gt;Introduction&lt;/a&gt; and a vignette on &lt;a href=&#34;https://cran.r-project.org/web/packages/RAQSAPI/vignettes/RAQSAPIusagetipsandprecautions.html&#34;&gt;Usage tips and precautions&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=troopdata&#34;&gt;troopdata&lt;/a&gt; v0.1.3: Provides access to U.S. Department of Defense data on overseas military deployments and includes functions for pulling country-year troop deployment and basing data. See &lt;a href=&#34;https://cran.r-project.org/web/packages/troopdata/readme/README.html&#34;&gt;README&lt;/a&gt; to get started&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;troopdata.png&#34; height = &#34;400&#34; width=&#34;600&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;engineering&#34;&gt;Engineering&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=pipenostics&#34;&gt;pipenostics&lt;/a&gt; v0.1.7: Implements empirical and data-driven models of heat losses, corrosion diagnostics, reliability and predictive maintenance of pipeline systems which should be of interest to the engineering departments of heat generating and heat transferring companies. See &lt;a href=&#34;https://link.springer.com/book/10.1007%2F978-3-319-25307-7&#34;&gt;Timashev et al. (2016)&lt;/a&gt; and &lt;a href=&#34;https://www.sciencedirect.com/science/article/pii/S2214785317313755?via%3Dihub&#34;&gt;Reddy (2017)&lt;/a&gt; for the methods used and &lt;a href=&#34;https://cran.r-project.org/web/packages/pipenostics/readme/README.html&#34;&gt;README&lt;/a&gt; to get started.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;pipenostics.svg&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;genomics&#34;&gt;Genomics&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=glmmSeq&#34;&gt;glmmSeq&lt;/a&gt; v0.1.0: Provides functions to fit negative binomial mixed effects models with matched samples to model expression data. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/glmmSeq/vignettes/glmmSeq.html&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;glmmSeq.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=ondisc&#34;&gt;ondisc&lt;/a&gt; v1.0.0: Implements a method to allow researchers to analyze large-scale single-cell data as and R object stored on disk. There is a tutorial on the the &lt;a href=&#34;https://cran.r-project.org/web/packages/ondisc/vignettes/tutorial_odm_class.html&#34;&gt;ondisc matrix class&lt;/a&gt; and another on &lt;a href=&#34;https://cran.r-project.org/web/packages/ondisc/vignettes/tutorial_other_classes.html&#34;&gt;Metadata&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=SignacX&#34;&gt;SignacX&lt;/a&gt; v2.2.0: Implements a neural network trained with flow-sorted gene expression data to classify cellular phenotypes in single cell RNA-sequencing data. See &lt;a href=&#34;https://www.biorxiv.org/content/10.1101/2021.02.01.429207v3&#34;&gt;Chamberlain et al. (2021)&lt;/a&gt; for background. There are seven vignettes including an &lt;a href=&#34;https://cran.r-project.org/web/packages/SignacX/vignettes/signac-Seurat_AMP.html&#34;&gt;Analysis of Kidney Lupus Data&lt;/a&gt; and an &lt;a href=&#34;https://cran.r-project.org/web/packages/SignacX/vignettes/signac-Seurat_pbmcs.html&#34;&gt;Analysis of PBMCs from 10X Genomics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;SignacX.png&#34; height = &#34;200&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;machine-learning&#34;&gt;Machine Learning&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=opitools&#34;&gt;opitools&lt;/a&gt; v1.0.3: Implements a tool to analyze opinions inherent in a text document relating to a specific subject (A) and assess how opinions expressed with respect to another subject (B) may affect the opinions on subject A. This package has been designed specifically for application to social media datasets, such as Twitter and Facebook. See &lt;a href=&#34;https://osf.io/preprints/socarxiv/c32qh/&#34;&gt;Adepeju and Jimoh (2021)&lt;/a&gt; for an extended example that demonstrates the utility of the approach and the &lt;a href=&#34;https://cran.r-project.org/web/packages/opitools/vignettes/opitools-vignette.html&#34;&gt;vignette&lt;/a&gt; to get started.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;opitools.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=poems&#34;&gt;poems&lt;/a&gt; v1.0.1: Provides a framework of interoperable R6 classes for building ensembles of viable models via the &lt;a href=&#34;https://en.wikipedia.org/wiki/Pattern-oriented_modeling&#34;&gt;pattern-oriented modeling&lt;/a&gt; (POM) approach. The package includes classes for encapsulating and generating model parameters, and managing the POM workflow which includes: model setup; generating model parameters via Latin hyper-cube sampling; running multiple sampled model simulations; collating summary results; and validating and selecting an ensemble of models that best match known patterns. There are two vignettes: &lt;a href=&#34;https://cran.r-project.org/web/packages/poems/vignettes/simple_example.pdf&#34;&gt;Simple Example&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/web/packages/poems/vignettes/thylacine_example.pdf&#34;&gt;Thylacine Example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;poems.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;medicine&#34;&gt;Medicine&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=dampack&#34;&gt;dampack&lt;/a&gt; v1.0.0: Implements a suite of functions for analyzing and visualizing the health economic outputs of mathematical models. See &lt;a href=&#34;https://www.cambridge.org/core/books/decision-making-in-health-and-medicine/31FD197195DAE2A6321409568BEFA2DD&#34;&gt;Hunink et al. (2014)&lt;/a&gt; for the theoretical underpinnings. There are five vignettes including &lt;a href=&#34;https://cran.r-project.org/web/packages/dampack/vignettes/basic_cea.html&#34;&gt;Basic Cost Effectiveness Analysis&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/dampack/vignettes/psa_analysis.html&#34;&gt;Probabilistic Sensitivity Analysis: Analysis&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/web/packages/dampack/vignettes/voi.html&#34;&gt;Value of Information Analysis&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;dampack.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=rdecision&#34;&gt;rdecision&lt;/a&gt; v1.0.3: Provides classes and functions for using decision trees to model health care interventions using cohort models. See &lt;a href=&#34;https://www.amazon.com/Decision-Modelling-Economic-Evaluation-Handbooks/dp/0198526628&#34;&gt;Briggs et al.&lt;/a&gt; for theory and terminology. There are five vignettes including &lt;a href=&#34;https://cran.r-project.org/web/packages/rdecision/vignettes/DT01-Sumatriptan.html&#34;&gt;Elementary decision tree (Evans 1997)&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/web/packages/rdecision/vignettes/DT02-Tegaderm.html&#34;&gt;Decision tree with PSA&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;rdecision.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;music&#34;&gt;Music&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=gm&#34;&gt;gm&lt;/a&gt; v1.0.2: Implements a high-level language to create music including converting your music to musical scores and audio files. It works with &lt;a href=&#34;https://rmarkdown.rstudio.com/&#34;&gt;R Markdown&lt;/a&gt;, R &lt;a href=&#34;https://jupyter.org/&#34;&gt;Jupyter Notebooks&lt;/a&gt;, and RStudio. There vignette is available in &lt;a href=&#34;https://cran.r-project.org/web/packages/gm/vignettes/gm.html&#34;&gt;English&lt;/a&gt; and in &lt;a href=&#34;https://cran.r-project.org/web/packages/gm/vignettes/cn.html&#34;&gt;Chinese&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;gm.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;networks&#34;&gt;Networks&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=sfnetworks&#34;&gt;sfnetworks&lt;/a&gt; v0.5.1: Provides a tidy approach to spatial network analysis in the form of classes and functions that enable a seamless interaction between the network analysis package &lt;code&gt;tidygraph&lt;/code&gt; and the spatial analysis package &lt;code&gt;sf&lt;/code&gt;. There are vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/sfnetworks/vignettes/structure.html&#34;&gt;sf network structure&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/sfnetworks/vignettes/preprocess_and_clean.html&#34;&gt;Preprocessing&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/sfnetworks/vignettes/join_filter.html&#34;&gt;Spatial joins and filters&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/sfnetworks/vignettes/routing.html&#34;&gt;Routing&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/sfnetworks/vignettes/morphers.html&#34;&gt;Spatial morphers&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;sfnetworks.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=valhallr&#34;&gt;valhallr&lt;/a&gt; v0.1.0: Implements an interface to the &lt;a href=&#34;https://github.com/valhalla/valhalla&#34;&gt;Valhalla&lt;/a&gt; routing engine’s API for turn-by-turn routing, isochrones, and origin-destination analyses. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/valhallr/vignettes/valhallr.html&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;valhallr.jpeg&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;science&#34;&gt;Science&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=asteRisk&#34;&gt;asteRisk&lt;/a&gt; v0.99.4: Provides functions to calculate the positions of satellites given a known state vector. It includes implementations of the SGP4 and SDP4 simplified perturbation models to propagate orbital state vectors. See &lt;a href=&#34;https://celestrak.com/NORAD/documentation/spacetrk.pdf&#34;&gt;Hoots et al. (1988)&lt;/a&gt;, &lt;a href=&#34;https://arc.aiaa.org/doi/10.2514/6.2006-6753&#34;&gt;Vallado et al. (2012)&lt;/a&gt;, and &lt;a href=&#34;https://arc.aiaa.org/doi/10.2514/1.9161&#34;&gt;Hoots et al. (2014)&lt;/a&gt; for background and the &lt;a href=&#34;https://cran.r-project.org/web/packages/asteRisk/vignettes/asteRisk.html&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;asteRisk.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=forImage&#34;&gt;forImage&lt;/a&gt; v0.1.0: Implements a tool to measure the size of foraminifera and other unicellulars and includes functions to guide foraminiferal test biovolume calculations and cell biomass estimations. The volume function includes several microalgae models geometric adaptations based on &lt;a href=&#34;https://onlinelibrary.wiley.com/doi/abs/10.1046/j.1529-8817.1999.3520403.x&#34;&gt;Hillebrand et al. (1999)&lt;/a&gt;, &lt;a href=&#34;https://academic.oup.com/plankt/article/25/11/1331/1490055&#34;&gt;Sun &amp;amp; Liu (2003)&lt;/a&gt;, and &lt;a href=&#34;http://siba-ese.unisalento.it/index.php/twb/article/view/106&#34;&gt;Vadrucci et al. (2007)&lt;/a&gt;. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/forImage/vignettes/forImage_vignette.html&#34;&gt;vignette&lt;/a&gt; to get started.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;forImage.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=OpenSpecy&#34;&gt;OpenSpecy&lt;/a&gt; v0.9.1: Provides functions to analyze, process, identify and share Raman and (FT)IR spectra with functions to implement Savitzky-Golay smoothing in accordance with &lt;a href=&#34;https://journals.sagepub.com/doi/10.1366/000370207782597003&#34;&gt;Zhao et al. (2007)&lt;/a&gt; and identify spectra using an onboard reference library, see &lt;a href=&#34;https://journals.sagepub.com/doi/10.1177/0003702820929064&#34;&gt;Cowger et al. 2020&lt;/a&gt;. Analyzed spectra can be shared via &lt;a href=&#34;https://wincowger.shinyapps.io/OpenSpecy/&#34;&gt;Shiny App&lt;/a&gt;. There is a &lt;a href=&#34;https://cran.r-project.org/web/packages/OpenSpecy/vignettes/sop.html&#34;&gt;vignette&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;OpenSpecy.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=tidypaleo&#34;&gt;tidypaleo&lt;/a&gt; v0.1.1: Provides functions with a common framework for age-depth model management, stratigraphic visualization, and common statistical transformations with a focus on stratigraphic visualization using &lt;code&gt;ggplot2&lt;/code&gt;. There are vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/tidypaleo/vignettes/age_depth.html&#34;&gt;Age-depth Models&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/tidypaleo/vignettes/nested_analysis.html&#34;&gt;Nested Analyses&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/tidypaleo/vignettes/strat_diagrams.html&#34;&gt;Stratigraphic Diagrams&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;tidypaleo.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=VulnToolkit&#34;&gt;VulnToolkit&lt;/a&gt; v1.1.2: Provides functions to analyze and summarize tidal data sets and to access to NOAA mean sea level data. See &lt;a href=&#34;https://www.sciencedirect.com/science/article/abs/pii/S0272771415002139?via%3Dihub&#34;&gt;Hill &amp;amp; Anisfeld (2015)&lt;/a&gt; for background and the &lt;a href=&#34;https://cran.r-project.org/web/packages/VulnToolkit/vignettes/Tidal_data.html&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;VulnToolkit.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;statistics&#34;&gt;Statistics&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=corncob&#34;&gt;corncob&lt;/a&gt; v0.2.0: Implements functions for modeling correlated count data using the beta-binomial distribution, described in &lt;a href=&#34;https://projecteuclid.org/journals/annals-of-applied-statistics/volume-14/issue-1/Modeling-microbial-abundances-and-dysbiosis-with-beta-binomial-regression/10.1214/19-AOAS1283.short&#34;&gt;Martin et al. (2020)&lt;/a&gt;. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/corncob/vignettes/corncob-intro.pdf&#34;&gt;vignette&lt;/a&gt; for an introduction.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;corncob.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=hawkesbow&#34;&gt;hawkesbow&lt;/a&gt; v1.0.2: Implements an estimation method for &lt;a href=&#34;https://arxiv.org/pdf/1507.02822.pdf#:~:text=The%20Hawkes%20process%20(HP)%20is,trade%20orders%2C%20or%20bank%20defaults.&#34;&gt;Hawkes processes&lt;/a&gt; when count data are only observed in discrete time, using a spectral approach derived from the Bartlett spectrum. See &lt;a href=&#34;https://arxiv.org/abs/2003.04314&#34;&gt;Cheysson and Lang (2020)&lt;/a&gt; for background and the &lt;a href=&#34;https://cran.r-project.org/web/packages/hawkesbow/vignettes/hawkesbow.pdf&#34;&gt;vignette&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=LMMELSM&#34;&gt;LMMELSM&lt;/a&gt; v0.1.0: Implements two-level mixed effects location scale models on multiple observed or latent outcomes, and between-group variance modeling. See &lt;a href=&#34;https://econtent.hogrefe.com/doi/10.1027/1015-5759/a000624&#34;&gt;Williams et al. (2020)&lt;/a&gt; and &lt;a href=&#34;https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1541-0420.2007.00924.x&#34;&gt;Hedeker et al. (2008)&lt;/a&gt; for background and &lt;a href=&#34;https://cran.r-project.org/web/packages/LMMELSM/readme/README.html&#34;&gt;README&lt;/a&gt; for an example.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=mixpoissonreg&#34;&gt;mixpoissinreg&lt;/a&gt; v1.0.0: Provides functions to fit mixed Poisson regression models (Poisson-Inverse Gaussian or Negative-Binomial) with count data response variables. See &lt;a href=&#34;https://link.springer.com/article/10.1007%2Fs11222-015-9601-6&#34;&gt; Barreto-Souza and Simas (2016)&lt;/a&gt; for background. There are five vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/mixpoissonreg/vignettes/influence-mixpoissonreg.html&#34;&gt;Global and Local Influence&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/mixpoissonreg/vignettes/intervals-mixpoissonreg.html&#34;&gt;Confidence and Prediction Intervals&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/mixpoissonreg/vignettes/ml-mixpoissonreg.html&#34;&gt;MLE&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/mixpoissonreg/vignettes/tidyverse-mixpoissonreg.html&#34;&gt;Tidy Methods&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/mixpoissonreg/vignettes/tutorial-mixpoissonreg.html&#34;&gt;Overdispersed Count Data&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;mixpoissinreg.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=ppdiag&#34;&gt;ppdiag&lt;/a&gt; v0.1.0: Provides a suite of diagnostic tools for univariate point processes including tools for simulating and fitting both common and more complex temporal point processes and the diagnostic tools described in &lt;a href=&#34;https://direct.mit.edu/neco/article/14/2/325/6578/The-Time-Rescaling-Theorem-and-Its-Application-to&#34;&gt;Brown et al. (2002)&lt;/a&gt; and &lt;a href=&#34;https://arxiv.org/abs/2001.09359&#34;&gt;Wu et al. (2020)&lt;/a&gt;. There is a vignette on &lt;a href=&#34;https://cran.r-project.org/web/packages/ppdiag/vignettes/fitting_markov_modulated.html&#34;&gt;Markov Modulated Point Processes&lt;/a&gt; and another on &lt;a href=&#34;https://cran.r-project.org/web/packages/ppdiag/vignettes/ppdiag.html&#34;&gt;Diagnostic Tools&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=robustlm&#34;&gt;robustlm&lt;/a&gt; v0.1.0: Implements a computationally efficient exponential squared loss algorithm for variable selection proposed by &lt;a href=&#34;https://www.tandfonline.com/doi/abs/10.1080/01621459.2013.766613&#34;&gt;Wang et al.(2013)&lt;/a&gt;. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/robustlm/vignettes/vignette.html&#34;&gt;vignette&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;robustlm.png&#34; height = &#34;200&#34; width=&#34;300&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://CRAN.R-project.org/package=smmR&#34;&gt;smmR&lt;/a&gt; v1.0.2: Provides functions to estimate and simulate multi-state semi-Markov models. The methods implemented are described in &lt;a href=&#34;https://www.tandfonline.com/doi/abs/10.1080/10485250701261913&#34;&gt;Barbu &amp;amp; Limnios (2008)&lt;/a&gt; and &lt;a href=&#34;https://www.tandfonline.com/doi/abs/10.1080/10485252.2011.555543&#34;&gt;Trevezas &amp;amp; Limnios (2011)&lt;/a&gt;. The &lt;a href=&#34;https://cran.r-project.org/web/packages/smmR/vignettes/Textile-Factory.html&#34;&gt;vignette&lt;/a&gt; contains an extended example.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;smmR.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=spotoroo&#34;&gt;spotoroo&lt;/a&gt; v0.1.1: Implements an algorithm to cluster satellite hot spot data spatially and temporally. See the &lt;a href=&#34;https://cran.r-project.org/web/packages/spotoroo/vignettes/Clustering-hot-spots.html&#34;&gt;vignette&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;spotoroo.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;h3 id=&#34;utilities&#34;&gt;Utilities&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=clock&#34;&gt;clock&lt;/a&gt; v0.2.0: Provides a comprehensive library for date-time manipulations using a new family of orthogonal date-time classes (duration, time points, zoned-times, and calendars) that partition responsibilities so that the complexities of time zones are only considered when they are really needed. There is a &lt;a href=&#34;Getting Started&#34;&gt;Getting Started&lt;/a&gt; guide, as well as vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/clock/vignettes/faq.html&#34;&gt;FAQ&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/clock/vignettes/recipes.html&#34;&gt;Examples and Recipies&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=crosstable&#34;&gt;crosstable&lt;/a&gt; v0.2.1: Provides functions to create descriptive tables for continuous and categorical variables, apply summary statistics, and create reports using &lt;code&gt;rmarkdown&lt;/code&gt; or &lt;code&gt;officer&lt;/code&gt;. There is an &lt;a href=&#34;https://cran.r-project.org/web/packages/crosstable/vignettes/crosstable.html&#34;&gt;Introduction&lt;/a&gt;, and vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/crosstable/vignettes/crosstable-install.html&#34;&gt;Troubleshooting&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/crosstable/vignettes/crosstable-report.html&#34;&gt;Making Automatic Reports&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/crosstable/vignettes/crosstable-selection.html&#34;&gt;Selecting Variables&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=pkgdepends&#34;&gt;pkgdepends&lt;/a&gt; v0.1.0: Provides functions to find recursive dependencies for R packages from various sources including CRAN, Bioconductor, and GitHub enabling users to obtain a consistent set of packages to install. See &lt;a href=&#34;https://cran.r-project.org/web/packages/pkgdepends/readme/README.html&#34;&gt;README&lt;/a&gt; to get started.&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=pkglite&#34;&gt;pkglite&lt;/a&gt; v0.1.1: Implements a tool, grammar, and standard to represent and exchange R package source code as text files. Converts one or more source packages to a text file and restores the package structures from the file. There are vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/pkglite/vignettes/filespec.html&#34;&gt;Generating File Specifications&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/pkglite/vignettes/format.html&#34;&gt;Representing Packages&lt;/a&gt;, and &lt;a href=&#34;https://cran.r-project.org/web/packages/pkglite/index.html&#34;&gt;Compact Package Representation&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&#34;visualization&#34;&gt;Visualization&lt;/h3&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=datplot&#34;&gt;datplot&lt;/a&gt; v1.0.0: Provides tools to process and prepare data for visualization and employs the concept of &lt;a href=&#34;https://www.jratcliffe.net/aoristic-analysis&#34;&gt;aoristic analysis&lt;/a&gt;. See &lt;a href=&#34;https://bit.ly/3svhbdV&#34;&gt;aorist&lt;/a&gt; and the vignettes &lt;a href=&#34;https://cran.r-project.org/web/packages/datplot/vignettes/data_preparation.html&#34;&gt;Data Preparation and Visualization&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/web/packages/datplot/vignettes/how-to.html&#34;&gt;Visualizing Chronological Distribution&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;datplot.png&#34; height = &#34;400&#34; width=&#34;600&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=ferrn&#34;&gt;ferrn&lt;/a&gt; v0.0.1: Implements diagnostic plots for optimization, with a focus on projection pursuit which show paths the optimizer takes in the high-dimensional space. See &lt;a href=&#34;https://cran.r-project.org/web/packages/ferrn/readme/README.html&#34;&gt;README&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;ferrn.gif&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=funcharts&#34;&gt;funcharts&lt;/a&gt; v1.0.0: Provides functional control charts for statistical process monitoring of functional data, using the methods of &lt;a href=&#34;https://onlinelibrary.wiley.com/doi/abs/10.1002/asmb.2507&#34;&gt;Capezza et al. (2020)&lt;/a&gt; and &lt;a href=&#34;https://www.tandfonline.com/doi/abs/10.1080/00401706.2020.1753581?journalCode=utch20&#34;&gt;Centofanti et al. (2020)&lt;/a&gt;. There are  vignettes on &lt;a href=&#34;https://cran.r-project.org/web/packages/funcharts/vignettes/capezza2020.html&#34;&gt;Capezza 2020&lt;/a&gt;, &lt;a href=&#34;https://cran.r-project.org/web/packages/funcharts/vignettes/centofanti2020.html&#34;&gt;Centofanti 2020&lt;/a&gt; and on the &lt;a href=&#34;https://cran.r-project.org/web/packages/funcharts/vignettes/mfd.html&#34;&gt;mfd class&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;funcharts.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=gghilbertstrings&#34;&gt;gghilbertstrings&lt;/a&gt; v0.3.3: Provides functions to plot Hilbert curves which are used to map one dimensional data into the 2D plane. A specific use case maps a character column in a data frame into 2D space allowing visually comparing long lists of URLs, words, genes or other data that has a fixed order and position. See &lt;a href=&#34;https://cran.r-project.org/web/packages/gghilbertstrings/readme/README.html&#34;&gt;README&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;gghilbertstrings.png&#34; height = &#34;300&#34; width=&#34;500&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://cran.r-project.org/package=mapsf&#34;&gt;mapsf&lt;/a&gt; v0.1.1: Provides functions to create and integrate thematic maps including functions to design various cartographic representations such as proportional symbols, choropleth or typology maps. Look &lt;a href=&#34;https://riatelab.github.io/mapsf&#34;&gt;here&lt;/a&gt; for examples.&lt;/p&gt;

&lt;p&gt;&lt;img src=&#34;mapsf.png&#34; height = &#34;400&#34; width=&#34;400&#34;&gt;&lt;/p&gt;

&lt;p&gt;&lt;sup&gt;1&lt;/sup&gt; I have used phrases like &lt;em&gt;By my count&lt;/em&gt; and &lt;em&gt;stuck to CRAN&lt;/em&gt; in the past, but I do not believe that I have explained what I mean. For some time now, but I believe more frequently in recent months, packages will appear as new on CRAN, only to be removed within a relatively short period of time for failing to resolve check problems. If you happen to know about these packages and search for them by name on CRAN you will receive the message:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Package XXXX was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2021-04-17 as check problems remained after update.
A summary of the most recent check results can be obtained from the check results archive.
Please use the canonical form &lt;a href=&#34;https://CRAN.R-project.org/package=XXXX&#34;&gt;https://CRAN.R-project.org/package=XXXX&lt;/a&gt; to link to this page.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I did not include the ten packages that were identified as being new for March when I created my list of March packages on April 10, 2021, but were removed by the time I finalized my list for this post a week later, in my total count of new CRAN packages. So, there is some instability with the notion of counting new packages in a given month.&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2021/04/22/march-2021-top-40-new-cran-packages/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>Congratulations Class of 2020!</title>
      <link>https://rviews.rstudio.com/2020/05/16/to-the-class-of-2020-graduates/</link>
      <pubDate>Sat, 16 May 2020 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2020/05/16/to-the-class-of-2020-graduates/</guid>
      <description>
        &lt;p&gt;&lt;img src=&#34;csueb.png&#34; alt=&#34;&#34; /&gt;&lt;/p&gt;

&lt;p&gt;Yesterday, along with R-Ladies Founder &lt;a href=&#34;https://k-roz.com/&#34;&gt;Gabriela de Queiroz&lt;/a&gt; I was honored to be asked to give a short talk at an online graduation ceremony for the BSc and MSc Statistics Graduates of the class of 2020 (all R users) at the California State University, East Bay. My talk contains some statistics jargon, but I thought it might be helpful to Class of 2020 graduates in other disciplines who have made some serious effort to acquire critical thinking skills. I know that not everyone thinks a graduation ceremony is important, but it seems to me that the Class of 2020 is getting seriously short changed, and could benefit from some attention. If any readers of this post would like to address the Class of 2020, I would be happy to publish their remarks in R Views.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Address to California State East Bay BSc and MSc Statistics Graduates: May 15, 2020&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Dear Fellow Alumni: Congratulations!!
It is difficult enough to make that final push to graduate under normal circumstances, but you have done it in the middle of a nightmarish doomsday scenario - Well done! You have demonstrated that you have what it takes to think clearly under pressure.&lt;/p&gt;

&lt;p&gt;Your families need you, your friends need you, your communities need you, and it is not an exaggeration to say that the world needs you. You have demonstrated some skill at reasoning about uncertainty, at a time when fearful men and women are anxious about walking out their front doors. They want bright line rules for how to avoid the virus, and they want absolute certainty that they will be safe.&lt;/p&gt;

&lt;p&gt;“If I wear a mask will I be protected? If a stay six feet apart does that mean everything will be OK? How about three feet? Well then, can I get my toenails done?”&lt;/p&gt;

&lt;p&gt;The role of the statistician is to help people cope with the irreducible uncertainty in the world. &lt;em&gt;Irreducible uncertainty&lt;/em&gt; - say that phase to yourself. Let it roll around in your head, but don’t let it scare you. You know that even when you have data that you believe in, data that you have cleaned and curated yourself; when you know something about the application you are working on and you have good reasons to use an informative prior - even then there is uncertainty. There is no way to escape the bias variance trade off - no way to be absolutely certain.&lt;/p&gt;

&lt;p&gt;You have acquired a probabilistic mindset that should help you to help others: to help them navigate the narrow path flanked by despair on one side and magical thinking on the other. When you look at the news, you can see how the nuanced explanations of the health care experts get watered down into oversimplified statements that are mostly misleading. It is now an everyday thing to see some authoritative sounding news person or public official show a forecast with enormous error bands and just ignore them. You are now in the group with some responsibility to stand up and say: “Whoa! Hold on here!&lt;/p&gt;

&lt;p&gt;Alright, so there’s one minor problem - the world, your community, your prospective employers may not yet know that they need you. The only way to help them to see the light in you is for you to be the person you want to be. If you want to be a statistician or data scientist, start to be one right away. Pick a problem, get the data, visualize it, analyze it, write about it. Put everything on your GitHub page. Talk about it to everyone who will listen.&lt;/p&gt;

&lt;p&gt;You don’t have to want to be a data scientist, but you do have to want to grow in some direction. Listen to yourself, trust yourself. Decide what it will take for you to flourish and go for it. Choose your friends carefully, and get involved in some cause bigger than yourself.&lt;/p&gt;

&lt;p&gt;Go for it. And wherever you go, walk with humility, but lead the way. Use your hard earned skills to navigate the random and the unpredictable. Take some reasonable risks, but consider the consequences for others.&lt;/p&gt;

&lt;p&gt;You can do it! Good luck to you all. Stay safe and prosper.&lt;/p&gt;

&lt;p&gt;And, because a graduation event is a good time to remember one’s own teachers, I would like to express my gratitude to Cal State East Bay Professors, Eric Suess and Bruce Trumbo, and also to Donald Lewis, Professor of Philosophy at Cal State Dominguez Hills.&lt;/p&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2020/05/16/to-the-class-of-2020-graduates/&#39;;&lt;/script&gt;
      </description>
    </item>
    
    <item>
      <title>A First Look at Confidence Distributions</title>
      <link>https://rviews.rstudio.com/2019/11/05/a-first-look-at-confidence-distributions/</link>
      <pubDate>Tue, 05 Nov 2019 00:00:00 +0000</pubDate>
      
      <guid>https://rviews.rstudio.com/2019/11/05/a-first-look-at-confidence-distributions/</guid>
      <description>
        
&lt;script src=&#34;/rmarkdown-libs/htmlwidgets/htmlwidgets.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/jquery/jquery.min.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/proj4js/proj4.js&#34;&gt;&lt;/script&gt;
&lt;link href=&#34;/rmarkdown-libs/highcharts/css/motion.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;link href=&#34;/rmarkdown-libs/highcharts/css/htmlwdgtgrid.css&#34; rel=&#34;stylesheet&#34; /&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/highcharts.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/highcharts-3d.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/highcharts-more.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/stock.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/map.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/annotations.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/boost.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/data.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/drag-panes.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/drilldown.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/item-series.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/offline-exporting.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/overlapping-datalabels.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/exporting.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/export-data.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/funnel.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/heatmap.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/treemap.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/sankey.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/solid-gauge.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/streamgraph.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/sunburst.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/vector.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/wordcloud.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/xrange.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/tilemap.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/venn.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/gantt.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/timeline.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/modules/parallel-coordinates.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/plugins/grouped-categories.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/plugins/motion.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/plugins/multicolor_series.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/custom/reset.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/custom/symbols-extra.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highcharts/custom/text-symbols.js&#34;&gt;&lt;/script&gt;
&lt;script src=&#34;/rmarkdown-libs/highchart-binding/highchart.js&#34;&gt;&lt;/script&gt;


&lt;p&gt;Using a probability distribution to characterize uncertainty is at the core of statistical inference. So, it seems natural to try to summarize the information about the parameters in statistical models with probability distributions. R. A. Fisher thought so. In fact, he expended a great deal of effort over more than thirty years, and put his professional reputation on the line trying to do so, with only limited success. Fisher’s central difficulty was that, in the Frequentist tradition to which he was committed, parameters are not random variables. They are fixed and immutable constituents of the statistical models describing the behavior of populations, which we must estimate because we generally only have access to samples from populations, not to the full populations themselves. Now Bayesians, of course, characterize parameters with probability distributions from the get-go. Parameters are given prior distributions and combined with the likelihood function generated by the data to produce posterior distributions that characterize the parameters. Fisher wanted the posterior distributions without having to assume the priors. This was a key motivating idea for his work on Fiducial probability.&lt;/p&gt;
&lt;p&gt;A few statisticians apparently quietly worked on this program throughout the twentieth century, even though Fisher’s Fiducial ideas were mostly forgotten and not part of the mainstream statistical current. D. R. Cox (&lt;a href=&#34;https://projecteuclid.org/download/pdf_1/euclid.aoms/1177706618&#34;&gt;Cox (1958)&lt;/a&gt;), for example, pioneered the idea of constructing &lt;em&gt;confidence distributions&lt;/em&gt; from confidence intervals, and Bradley Efron (&lt;a href=&#34;https://projecteuclid.org/download/pdf_1/euclid.ss/1028905930&#34;&gt;Efron (1998)&lt;/a&gt;) expressed great optimism that Fisher’s work in this area would become important in the twenty-first century. (Efron’s paper is a masterpiece that summarizes a good bit of twentieth-century statistical research.)&lt;/p&gt;
&lt;p&gt;Recently, however, there seems to have been a resurgence of Fisher’s ideas among statisticians interested in chasing the idea of an orthodox Frequentist view of parameter distributions. The 2013 paper of &lt;a href=&#34;https://www.stat.rutgers.edu/home/mxie/RCPapers/insr.12000.pdf&#34;&gt;Xie and Singh&lt;/a&gt; lays out the modern theory of confidence distributions as a fundamental idea that organizes a great deal of statistical practice. In the initial Summary, the authors write:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;. . .the concept of a confidence distribution subsumes and unifies a wide range of
examples, from regular parametric (fiducial distribution) examples to bootstrap distributions,
significance (p-value) functions, normalized likelihood functions, and, in some cases, Bayesian priors and posteriors.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Later in the paper, they go on to define a confidence distribution as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A function H&lt;sub&gt;n&lt;/sub&gt;(·) = H&lt;sub&gt;n&lt;/sub&gt;(x, ·) on &lt;strong&gt;X&lt;/strong&gt; × &lt;span class=&#34;math inline&#34;&gt;\(\Theta\)&lt;/span&gt; → [0, 1] is called a confidence distribution (CD) for a parameter &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;, if&lt;br /&gt;
* R1) For each given x ∈ &lt;strong&gt;X&lt;/strong&gt; , H&lt;sub&gt;n&lt;/sub&gt;(·) is a cumulative distribution function on &lt;span class=&#34;math inline&#34;&gt;\(\Theta\)&lt;/span&gt;;&lt;br /&gt;
* R2) At the true parameter value &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt; = &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;, H&lt;sub&gt;n&lt;/sub&gt;(&lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;) ≡ H&lt;sub&gt;n&lt;/sub&gt;(x, &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;&lt;sub&gt;0&lt;/sub&gt;), as a function of the sample&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The simplest example of a confidence distribution I could find that is adequate to illustrate some of the key concepts comes from the book &lt;a href=&#34;https://www.cambridge.org/core/books/confidence-likelihood-probability/143A34F11FB3D6F611F78E27C6D2CA5A&#34;&gt;Confidence, Likelihood, Probability: Statistical Inference with Confidence Distributions&lt;/a&gt; by Schweder and Hjort. On page 62, the authors point out that the distribution of the p-value for the parameter &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt; describing the probability of success for a binomial trial can be considered as an approximate confidence distribution for &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;. The distribution is approximate because the distribution is discrete and the “half-correction” is used to improve the approximation. Note that because the &lt;a href=&#34;https://www.youtube.com/watch?v=UPQtjahe3j4&#34;&gt;p-values follow uniform distributions&lt;/a&gt; under the null hypothesis, it should be clear that the assumptions of the definition above are satisfied.&lt;/p&gt;
&lt;p&gt;Suppose Y ~ Bin(n,&lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;), then&lt;/p&gt;
&lt;p&gt;C(&lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;) = P(Y &amp;gt; y&lt;sub&gt;0&lt;/sub&gt;) + .5 * P(Y = y&lt;sub&gt;0&lt;/sub&gt;)
is a confidence distribution for &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;To illustrate this, we consider the experiment of realizing 8 successes in 20 trials and write a short helper function.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;CD &amp;lt;- function(theta,n=20,y0=8){
            1 - sum(dbinom(x = seq(from = 0, to = y0), size = n, prob = theta)) + 
           .5 * dbinom(x = y0, size = n, prob = theta)}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here, we compute the CDF and plot it.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;library(tidyverse)
library(highcharter)
conf_dist &amp;lt;-  
  tibble(theta = seq(0, 1, by = .01)) %&amp;gt;%  
  mutate(probability = map_dbl(theta, CD))

hchart(conf_dist, &amp;quot;line&amp;quot;, hcaes(x = theta, y = probability)) %&amp;gt;%
hc_title(text = &amp;quot;Confidence Distribution for Binomial Model&amp;quot;,
         margin = 20, align = &amp;quot;left&amp;quot;,
         style = list(color = &amp;quot;black&amp;quot;, useHTML = TRUE)) %&amp;gt;%
hc_tooltip(valueDecimals=4, valuePrefix=&amp;quot;cum prob = &amp;quot;)&lt;/code&gt;&lt;/pre&gt;
&lt;div id=&#34;htmlwidget-1&#34; style=&#34;width:100%;height:500px;&#34; class=&#34;highchart html-widget&#34;&gt;&lt;/div&gt;
&lt;script type=&#34;application/json&#34; data-for=&#34;htmlwidget-1&#34;&gt;{&#34;x&#34;:{&#34;hc_opts&#34;:{&#34;title&#34;:{&#34;text&#34;:&#34;Confidence Distribution for Binomial Model&#34;,&#34;margin&#34;:20,&#34;align&#34;:&#34;left&#34;,&#34;style&#34;:{&#34;color&#34;:&#34;black&#34;,&#34;useHTML&#34;:true}},&#34;yAxis&#34;:{&#34;title&#34;:{&#34;text&#34;:&#34;probability&#34;},&#34;type&#34;:&#34;linear&#34;},&#34;credits&#34;:{&#34;enabled&#34;:false},&#34;exporting&#34;:{&#34;enabled&#34;:false},&#34;plotOptions&#34;:{&#34;series&#34;:{&#34;label&#34;:{&#34;enabled&#34;:false},&#34;turboThreshold&#34;:0,&#34;showInLegend&#34;:false},&#34;treemap&#34;:{&#34;layoutAlgorithm&#34;:&#34;squarified&#34;},&#34;scatter&#34;:{&#34;marker&#34;:{&#34;symbol&#34;:&#34;circle&#34;}}},&#34;series&#34;:[{&#34;group&#34;:&#34;group&#34;,&#34;data&#34;:[{&#34;theta&#34;:0,&#34;probability&#34;:0,&#34;x&#34;:0,&#34;y&#34;:0},{&#34;theta&#34;:0.01,&#34;probability&#34;:5.73499566887768e-12,&#34;x&#34;:0.01,&#34;y&#34;:5.73499566887768e-12},{&#34;theta&#34;:0.02,&#34;probability&#34;:1.33572401483433e-09,&#34;x&#34;:0.02,&#34;y&#34;:1.33572401483433e-09},{&#34;theta&#34;:0.03,&#34;probability&#34;:3.11201811492425e-08,&#34;x&#34;:0.03,&#34;y&#34;:3.11201811492425e-08},{&#34;theta&#34;:0.04,&#34;probability&#34;:2.82353239135745e-07,&#34;x&#34;:0.04,&#34;y&#34;:2.82353239135745e-07},{&#34;theta&#34;:0.05,&#34;probability&#34;:1.52740959689047e-06,&#34;x&#34;:0.05,&#34;y&#34;:1.52740959689047e-06},{&#34;theta&#34;:0.06,&#34;probability&#34;:5.95561261361866e-06,&#34;x&#34;:0.06,&#34;y&#34;:5.95561261361866e-06},{&#34;theta&#34;:0.07,&#34;probability&#34;:1.85206634848512e-05,&#34;x&#34;:0.07,&#34;y&#34;:1.85206634848512e-05},{&#34;theta&#34;:0.08,&#34;probability&#34;:4.87954463305065e-05,&#34;x&#34;:0.08,&#34;y&#34;:4.87954463305065e-05},{&#34;theta&#34;:0.09,&#34;probability&#34;:0.000113243868828019,&#34;x&#34;:0.09,&#34;y&#34;:0.000113243868828019},{&#34;theta&#34;:0.1,&#34;probability&#34;:0.000237746775292845,&#34;x&#34;:0.1,&#34;y&#34;:0.000237746775292845},{&#34;theta&#34;:0.11,&#34;probability&#34;:0.000460169436248278,&#34;x&#34;:0.11,&#34;y&#34;:0.000460169436248278},{&#34;theta&#34;:0.12,&#34;probability&#34;:0.000832734447940497,&#34;x&#34;:0.12,&#34;y&#34;:0.000832734447940497},{&#34;theta&#34;:0.13,&#34;probability&#34;:0.0014239652669573,&#34;x&#34;:0.13,&#34;y&#34;:0.0014239652669573},{&#34;theta&#34;:0.14,&#34;probability&#34;:0.00231998890516482,&#34;x&#34;:0.14,&#34;y&#34;:0.00231998890516482},{&#34;theta&#34;:0.15,&#34;probability&#34;:0.00362502697453944,&#34;x&#34;:0.15,&#34;y&#34;:0.00362502697453944},{&#34;theta&#34;:0.16,&#34;probability&#34;:0.00546095711151733,&#34;x&#34;:0.16,&#34;y&#34;:0.00546095711151733},{&#34;theta&#34;:0.17,&#34;probability&#34;:0.00796588655322165,&#34;x&#34;:0.17,&#34;y&#34;:0.00796588655322165},{&#34;theta&#34;:0.18,&#34;probability&#34;:0.0112917413300254,&#34;x&#34;:0.18,&#34;y&#34;:0.0112917413300254},{&#34;theta&#34;:0.19,&#34;probability&#34;:0.0156009338215457,&#34;x&#34;:0.19,&#34;y&#34;:0.0156009338215457},{&#34;theta&#34;:0.2,&#34;probability&#34;:0.0210622247007996,&#34;x&#34;:0.2,&#34;y&#34;:0.0210622247007996},{&#34;theta&#34;:0.21,&#34;probability&#34;:0.0278459398154536,&#34;x&#34;:0.21,&#34;y&#34;:0.0278459398154536},{&#34;theta&#34;:0.22,&#34;probability&#34;:0.0361187364416553,&#34;x&#34;:0.22,&#34;y&#34;:0.0361187364416553},{&#34;theta&#34;:0.23,&#34;probability&#34;:0.0460381355411022,&#34;x&#34;:0.23,&#34;y&#34;:0.0460381355411022},{&#34;theta&#34;:0.24,&#34;probability&#34;:0.0577470468616008,&#34;x&#34;:0.24,&#34;y&#34;:0.0577470468616008},{&#34;theta&#34;:0.25,&#34;probability&#34;:0.0713685123146205,&#34;x&#34;:0.25,&#34;y&#34;:0.0713685123146205},{&#34;theta&#34;:0.26,&#34;probability&#34;:0.087000880960923,&#34;x&#34;:0.26,&#34;y&#34;:0.087000880960923},{&#34;theta&#34;:0.27,&#34;probability&#34;:0.104713607490085,&#34;x&#34;:0.27,&#34;y&#34;:0.104713607490085},{&#34;theta&#34;:0.28,&#34;probability&#34;:0.124543836956545,&#34;x&#34;:0.28,&#34;y&#34;:0.124543836956545},{&#34;theta&#34;:0.29,&#34;probability&#34;:0.146493903594774,&#34;x&#34;:0.29,&#34;y&#34;:0.146493903594774},{&#34;theta&#34;:0.3,&#34;probability&#34;:0.170529832729409,&#34;x&#34;:0.3,&#34;y&#34;:0.170529832729409},{&#34;theta&#34;:0.31,&#34;probability&#34;:0.196580894065467,&#34;x&#34;:0.31,&#34;y&#34;:0.196580894065467},{&#34;theta&#34;:0.32,&#34;probability&#34;:0.224540213842213,&#34;x&#34;:0.32,&#34;y&#34;:0.224540213842213},{&#34;theta&#34;:0.33,&#34;probability&#34;:0.254266414156535,&#34;x&#34;:0.33,&#34;y&#34;:0.254266414156535},{&#34;theta&#34;:0.34,&#34;probability&#34;:0.285586211691276,&#34;x&#34;:0.34,&#34;y&#34;:0.285586211691276},{&#34;theta&#34;:0.35,&#34;probability&#34;:0.318297876353866,&#34;x&#34;:0.35,&#34;y&#34;:0.318297876353866},{&#34;theta&#34;:0.36,&#34;probability&#34;:0.35217542389985,&#34;x&#34;:0.36,&#34;y&#34;:0.35217542389985},{&#34;theta&#34;:0.37,&#34;probability&#34;:0.386973396157569,&#34;x&#34;:0.37,&#34;y&#34;:0.386973396157569},{&#34;theta&#34;:0.38,&#34;probability&#34;:0.422432068373071,&#34;x&#34;:0.38,&#34;y&#34;:0.422432068373071},{&#34;theta&#34;:0.39,&#34;probability&#34;:0.458282915573536,&#34;x&#34;:0.39,&#34;y&#34;:0.458282915573536},{&#34;theta&#34;:0.4,&#34;probability&#34;:0.49425416856512,&#34;x&#34;:0.4,&#34;y&#34;:0.49425416856512},{&#34;theta&#34;:0.41,&#34;probability&#34;:0.530076294873525,&#34;x&#34;:0.41,&#34;y&#34;:0.530076294873525},{&#34;theta&#34;:0.42,&#34;probability&#34;:0.565487250045856,&#34;x&#34;:0.42,&#34;y&#34;:0.565487250045856},{&#34;theta&#34;:0.43,&#34;probability&#34;:0.6002373595472,&#34;x&#34;:0.43,&#34;y&#34;:0.6002373595472},{&#34;theta&#34;:0.44,&#34;probability&#34;:0.63409371017361,&#34;x&#34;:0.44,&#34;y&#34;:0.63409371017361},{&#34;theta&#34;:0.45,&#34;probability&#34;:0.666843951555161,&#34;x&#34;:0.45,&#34;y&#34;:0.666843951555161},{&#34;theta&#34;:0.46,&#34;probability&#34;:0.698299431988929,&#34;x&#34;:0.46,&#34;y&#34;:0.698299431988929},{&#34;theta&#34;:0.47,&#34;probability&#34;:0.728297617569333,&#34;x&#34;:0.47,&#34;y&#34;:0.728297617569333},{&#34;theta&#34;:0.48,&#34;probability&#34;:0.756703768450287,&#34;x&#34;:0.48,&#34;y&#34;:0.756703768450287},{&#34;theta&#34;:0.49,&#34;probability&#34;:0.783411870218361,&#34;x&#34;:0.49,&#34;y&#34;:0.783411870218361},{&#34;theta&#34;:0.5,&#34;probability&#34;:0.808344841003418,&#34;x&#34;:0.5,&#34;y&#34;:0.808344841003418},{&#34;theta&#34;:0.51,&#34;probability&#34;:0.831454055434115,&#34;x&#34;:0.51,&#34;y&#34;:0.831454055434115},{&#34;theta&#34;:0.52,&#34;probability&#34;:0.85271824431402,&#34;x&#34;:0.52,&#34;y&#34;:0.85271824431402},{&#34;theta&#34;:0.53,&#34;probability&#34;:0.872141843535642,&#34;x&#34;:0.53,&#34;y&#34;:0.872141843535642},{&#34;theta&#34;:0.54,&#34;probability&#34;:0.889752876987755,&#34;x&#34;:0.54,&#34;y&#34;:0.889752876987755},{&#34;theta&#34;:0.55,&#34;probability&#34;:0.905600465906429,&#34;x&#34;:0.55,&#34;y&#34;:0.905600465906429},{&#34;theta&#34;:0.56,&#34;probability&#34;:0.91975206126523,&#34;x&#34;:0.56,&#34;y&#34;:0.91975206126523},{&#34;theta&#34;:0.57,&#34;probability&#34;:0.932290496511752,&#34;x&#34;:0.57,&#34;y&#34;:0.932290496511752},{&#34;theta&#34;:0.58,&#34;probability&#34;:0.94331095546382,&#34;x&#34;:0.58,&#34;y&#34;:0.94331095546382},{&#34;theta&#34;:0.59,&#34;probability&#34;:0.952917944802709,&#34;x&#34;:0.59,&#34;y&#34;:0.952917944802709},{&#34;theta&#34;:0.6,&#34;probability&#34;:0.961222352743988,&#34;x&#34;:0.6,&#34;y&#34;:0.961222352743988},{&#34;theta&#34;:0.61,&#34;probability&#34;:0.968338665588788,&#34;x&#34;:0.61,&#34;y&#34;:0.968338665588788},{&#34;theta&#34;:0.62,&#34;probability&#34;:0.974382402457655,&#34;x&#34;:0.62,&#34;y&#34;:0.974382402457655},{&#34;theta&#34;:0.63,&#34;probability&#34;:0.979467816101886,&#34;x&#34;:0.63,&#34;y&#34;:0.979467816101886},{&#34;theta&#34;:0.64,&#34;probability&#34;:0.983705894787928,&#34;x&#34;:0.64,&#34;y&#34;:0.983705894787928},{&#34;theta&#34;:0.65,&#34;probability&#34;:0.987202687353466,&#34;x&#34;:0.65,&#34;y&#34;:0.987202687353466},{&#34;theta&#34;:0.66,&#34;probability&#34;:0.990057961096871,&#34;x&#34;:0.66,&#34;y&#34;:0.990057961096871},{&#34;theta&#34;:0.67,&#34;probability&#34;:0.992364190591014,&#34;x&#34;:0.67,&#34;y&#34;:0.992364190591014},{&#34;theta&#34;:0.68,&#34;probability&#34;:0.994205865151394,&#34;x&#34;:0.68,&#34;y&#34;:0.994205865151394},{&#34;theta&#34;:0.69,&#34;probability&#34;:0.995659093808592,&#34;x&#34;:0.69,&#34;y&#34;:0.995659093808592},{&#34;theta&#34;:0.7,&#34;probability&#34;:0.996791479430329,&#34;x&#34;:0.7,&#34;y&#34;:0.996791479430329},{&#34;theta&#34;:0.71,&#34;probability&#34;:0.997662228223176,&#34;x&#34;:0.71,&#34;y&#34;:0.997662228223176},{&#34;theta&#34;:0.72,&#34;probability&#34;:0.998322457253502,&#34;x&#34;:0.72,&#34;y&#34;:0.998322457253502},{&#34;theta&#34;:0.73,&#34;probability&#34;:0.998815660821706,&#34;x&#34;:0.73,&#34;y&#34;:0.998815660821706},{&#34;theta&#34;:0.74,&#34;probability&#34;:0.999178296394706,&#34;x&#34;:0.74,&#34;y&#34;:0.999178296394706},{&#34;theta&#34;:0.75,&#34;probability&#34;:0.999440452181261,&#34;x&#34;:0.75,&#34;y&#34;:0.999440452181261},{&#34;theta&#34;:0.76,&#34;probability&#34;:0.99962656110662,&#34;x&#34;:0.76,&#34;y&#34;:0.99962656110662},{&#34;theta&#34;:0.77,&#34;probability&#34;:0.999756129655175,&#34;x&#34;:0.77,&#34;y&#34;:0.999756129655175},{&#34;theta&#34;:0.78,&#34;probability&#34;:0.999844454527686,&#34;x&#34;:0.78,&#34;y&#34;:0.999844454527686},{&#34;theta&#34;:0.79,&#34;probability&#34;:0.99990330502023,&#34;x&#34;:0.79,&#34;y&#34;:0.99990330502023},{&#34;theta&#34;:0.8,&#34;probability&#34;:0.999941554197265,&#34;x&#34;:0.8,&#34;y&#34;:0.999941554197265},{&#34;theta&#34;:0.81,&#34;probability&#34;:0.999965747040655,&#34;x&#34;:0.81,&#34;y&#34;:0.999965747040655},{&#34;theta&#34;:0.82,&#34;probability&#34;:0.999980598578908,&#34;x&#34;:0.82,&#34;y&#34;:0.999980598578908},{&#34;theta&#34;:0.83,&#34;probability&#34;:0.999989419342954,&#34;x&#34;:0.83,&#34;y&#34;:0.999989419342954},{&#34;theta&#34;:0.84,&#34;probability&#34;:0.999994469208827,&#34;x&#34;:0.84,&#34;y&#34;:0.999994469208827},{&#34;theta&#34;:0.85,&#34;probability&#34;:0.999997243675202,&#34;x&#34;:0.85,&#34;y&#34;:0.999997243675202},{&#34;theta&#34;:0.86,&#34;probability&#34;:0.999998698837753,&#34;x&#34;:0.86,&#34;y&#34;:0.999998698837753},{&#34;theta&#34;:0.87,&#34;probability&#34;:0.999999422764826,&#34;x&#34;:0.87,&#34;y&#34;:0.999999422764826},{&#34;theta&#34;:0.88,&#34;probability&#34;:0.999999761697516,&#34;x&#34;:0.88,&#34;y&#34;:0.999999761697516},{&#34;theta&#34;:0.89,&#34;probability&#34;:0.999999909577602,&#34;x&#34;:0.89,&#34;y&#34;:0.999999909577602},{&#34;theta&#34;:0.9,&#34;probability&#34;:0.999999968963797,&#34;x&#34;:0.9,&#34;y&#34;:0.999999968963797},{&#34;theta&#34;:0.91,&#34;probability&#34;:0.999999990564098,&#34;x&#34;:0.91,&#34;y&#34;:0.999999990564098},{&#34;theta&#34;:0.92,&#34;probability&#34;:0.999999997530193,&#34;x&#34;:0.92,&#34;y&#34;:0.999999997530193},{&#34;theta&#34;:0.93,&#34;probability&#34;:0.999999999465214,&#34;x&#34;:0.93,&#34;y&#34;:0.999999999465214},{&#34;theta&#34;:0.94,&#34;probability&#34;:0.999999999909645,&#34;x&#34;:0.94,&#34;y&#34;:0.999999999909645},{&#34;theta&#34;:0.95,&#34;probability&#34;:0.99999999998912,&#34;x&#34;:0.95,&#34;y&#34;:0.99999999998912},{&#34;theta&#34;:0.96,&#34;probability&#34;:0.999999999999198,&#34;x&#34;:0.96,&#34;y&#34;:0.999999999999198},{&#34;theta&#34;:0.97,&#34;probability&#34;:0.999999999999973,&#34;x&#34;:0.97,&#34;y&#34;:0.999999999999973},{&#34;theta&#34;:0.98,&#34;probability&#34;:1,&#34;x&#34;:0.98,&#34;y&#34;:1},{&#34;theta&#34;:0.99,&#34;probability&#34;:1,&#34;x&#34;:0.99,&#34;y&#34;:1},{&#34;theta&#34;:1,&#34;probability&#34;:1,&#34;x&#34;:1,&#34;y&#34;:1}],&#34;type&#34;:&#34;line&#34;}],&#34;xAxis&#34;:{&#34;type&#34;:&#34;linear&#34;,&#34;title&#34;:{&#34;text&#34;:&#34;theta&#34;},&#34;categories&#34;:null},&#34;tooltip&#34;:{&#34;valueDecimals&#34;:4,&#34;valuePrefix&#34;:&#34;cum prob = &#34;}},&#34;theme&#34;:{&#34;chart&#34;:{&#34;backgroundColor&#34;:&#34;transparent&#34;}},&#34;conf_opts&#34;:{&#34;global&#34;:{&#34;Date&#34;:null,&#34;VMLRadialGradientURL&#34;:&#34;http =//code.highcharts.com/list(version)/gfx/vml-radial-gradient.png&#34;,&#34;canvasToolsURL&#34;:&#34;http =//code.highcharts.com/list(version)/modules/canvas-tools.js&#34;,&#34;getTimezoneOffset&#34;:null,&#34;timezoneOffset&#34;:0,&#34;useUTC&#34;:true},&#34;lang&#34;:{&#34;contextButtonTitle&#34;:&#34;Chart context menu&#34;,&#34;decimalPoint&#34;:&#34;.&#34;,&#34;downloadJPEG&#34;:&#34;Download JPEG image&#34;,&#34;downloadPDF&#34;:&#34;Download PDF document&#34;,&#34;downloadPNG&#34;:&#34;Download PNG image&#34;,&#34;downloadSVG&#34;:&#34;Download SVG vector image&#34;,&#34;drillUpText&#34;:&#34;Back to {series.name}&#34;,&#34;invalidDate&#34;:null,&#34;loading&#34;:&#34;Loading...&#34;,&#34;months&#34;:[&#34;January&#34;,&#34;February&#34;,&#34;March&#34;,&#34;April&#34;,&#34;May&#34;,&#34;June&#34;,&#34;July&#34;,&#34;August&#34;,&#34;September&#34;,&#34;October&#34;,&#34;November&#34;,&#34;December&#34;],&#34;noData&#34;:&#34;No data to display&#34;,&#34;numericSymbols&#34;:[&#34;k&#34;,&#34;M&#34;,&#34;G&#34;,&#34;T&#34;,&#34;P&#34;,&#34;E&#34;],&#34;printChart&#34;:&#34;Print chart&#34;,&#34;resetZoom&#34;:&#34;Reset zoom&#34;,&#34;resetZoomTitle&#34;:&#34;Reset zoom level 1:1&#34;,&#34;shortMonths&#34;:[&#34;Jan&#34;,&#34;Feb&#34;,&#34;Mar&#34;,&#34;Apr&#34;,&#34;May&#34;,&#34;Jun&#34;,&#34;Jul&#34;,&#34;Aug&#34;,&#34;Sep&#34;,&#34;Oct&#34;,&#34;Nov&#34;,&#34;Dec&#34;],&#34;thousandsSep&#34;:&#34; &#34;,&#34;weekdays&#34;:[&#34;Sunday&#34;,&#34;Monday&#34;,&#34;Tuesday&#34;,&#34;Wednesday&#34;,&#34;Thursday&#34;,&#34;Friday&#34;,&#34;Saturday&#34;]}},&#34;type&#34;:&#34;chart&#34;,&#34;fonts&#34;:[],&#34;debug&#34;:false},&#34;evals&#34;:[],&#34;jsHooks&#34;:[]}&lt;/script&gt;
&lt;p&gt;This is nice, but to really see how computing the confidence distribution might be useful, we compute and plot the confidence curve introduced by Birnbaum in his &lt;a href=&#34;https://projecteuclid.org/download/pdf_1/euclid.aoms/1177705145&#34;&gt;1961 paper&lt;/a&gt;.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;conf_curve &amp;lt;-  
  conf_dist %&amp;gt;%  
  mutate(confidence = 2 * abs(.5 - probability))

hchart(conf_curve, &amp;quot;line&amp;quot;, hcaes(x = theta, y = confidence)) %&amp;gt;%
  hc_title(text = &amp;quot;Confidence Curve for Binomial Model&amp;quot;,
           margin = 20, align = &amp;quot;left&amp;quot;,
           style = list(color = &amp;quot;black&amp;quot;, useHTML = TRUE)) %&amp;gt;%
  hc_tooltip(valueDecimals=4, valuePrefix=&amp;quot;conf level = &amp;quot;)&lt;/code&gt;&lt;/pre&gt;
&lt;div id=&#34;htmlwidget-2&#34; style=&#34;width:100%;height:500px;&#34; class=&#34;highchart html-widget&#34;&gt;&lt;/div&gt;
&lt;script type=&#34;application/json&#34; data-for=&#34;htmlwidget-2&#34;&gt;{&#34;x&#34;:{&#34;hc_opts&#34;:{&#34;title&#34;:{&#34;text&#34;:&#34;Confidence Curve for Binomial Model&#34;,&#34;margin&#34;:20,&#34;align&#34;:&#34;left&#34;,&#34;style&#34;:{&#34;color&#34;:&#34;black&#34;,&#34;useHTML&#34;:true}},&#34;yAxis&#34;:{&#34;title&#34;:{&#34;text&#34;:&#34;confidence&#34;},&#34;type&#34;:&#34;linear&#34;},&#34;credits&#34;:{&#34;enabled&#34;:false},&#34;exporting&#34;:{&#34;enabled&#34;:false},&#34;plotOptions&#34;:{&#34;series&#34;:{&#34;label&#34;:{&#34;enabled&#34;:false},&#34;turboThreshold&#34;:0,&#34;showInLegend&#34;:false},&#34;treemap&#34;:{&#34;layoutAlgorithm&#34;:&#34;squarified&#34;},&#34;scatter&#34;:{&#34;marker&#34;:{&#34;symbol&#34;:&#34;circle&#34;}}},&#34;series&#34;:[{&#34;group&#34;:&#34;group&#34;,&#34;data&#34;:[{&#34;theta&#34;:0,&#34;probability&#34;:0,&#34;confidence&#34;:1,&#34;x&#34;:0,&#34;y&#34;:1},{&#34;theta&#34;:0.01,&#34;probability&#34;:5.73499566887768e-12,&#34;confidence&#34;:0.99999999998853,&#34;x&#34;:0.01,&#34;y&#34;:0.99999999998853},{&#34;theta&#34;:0.02,&#34;probability&#34;:1.33572401483433e-09,&#34;confidence&#34;:0.999999997328552,&#34;x&#34;:0.02,&#34;y&#34;:0.999999997328552},{&#34;theta&#34;:0.03,&#34;probability&#34;:3.11201811492425e-08,&#34;confidence&#34;:0.999999937759638,&#34;x&#34;:0.03,&#34;y&#34;:0.999999937759638},{&#34;theta&#34;:0.04,&#34;probability&#34;:2.82353239135745e-07,&#34;confidence&#34;:0.999999435293522,&#34;x&#34;:0.04,&#34;y&#34;:0.999999435293522},{&#34;theta&#34;:0.05,&#34;probability&#34;:1.52740959689047e-06,&#34;confidence&#34;:0.999996945180806,&#34;x&#34;:0.05,&#34;y&#34;:0.999996945180806},{&#34;theta&#34;:0.06,&#34;probability&#34;:5.95561261361866e-06,&#34;confidence&#34;:0.999988088774773,&#34;x&#34;:0.06,&#34;y&#34;:0.999988088774773},{&#34;theta&#34;:0.07,&#34;probability&#34;:1.85206634848512e-05,&#34;confidence&#34;:0.99996295867303,&#34;x&#34;:0.07,&#34;y&#34;:0.99996295867303},{&#34;theta&#34;:0.08,&#34;probability&#34;:4.87954463305065e-05,&#34;confidence&#34;:0.999902409107339,&#34;x&#34;:0.08,&#34;y&#34;:0.999902409107339},{&#34;theta&#34;:0.09,&#34;probability&#34;:0.000113243868828019,&#34;confidence&#34;:0.999773512262344,&#34;x&#34;:0.09,&#34;y&#34;:0.999773512262344},{&#34;theta&#34;:0.1,&#34;probability&#34;:0.000237746775292845,&#34;confidence&#34;:0.999524506449414,&#34;x&#34;:0.1,&#34;y&#34;:0.999524506449414},{&#34;theta&#34;:0.11,&#34;probability&#34;:0.000460169436248278,&#34;confidence&#34;:0.999079661127503,&#34;x&#34;:0.11,&#34;y&#34;:0.999079661127503},{&#34;theta&#34;:0.12,&#34;probability&#34;:0.000832734447940497,&#34;confidence&#34;:0.998334531104119,&#34;x&#34;:0.12,&#34;y&#34;:0.998334531104119},{&#34;theta&#34;:0.13,&#34;probability&#34;:0.0014239652669573,&#34;confidence&#34;:0.997152069466085,&#34;x&#34;:0.13,&#34;y&#34;:0.997152069466085},{&#34;theta&#34;:0.14,&#34;probability&#34;:0.00231998890516482,&#34;confidence&#34;:0.99536002218967,&#34;x&#34;:0.14,&#34;y&#34;:0.99536002218967},{&#34;theta&#34;:0.15,&#34;probability&#34;:0.00362502697453944,&#34;confidence&#34;:0.992749946050921,&#34;x&#34;:0.15,&#34;y&#34;:0.992749946050921},{&#34;theta&#34;:0.16,&#34;probability&#34;:0.00546095711151733,&#34;confidence&#34;:0.989078085776965,&#34;x&#34;:0.16,&#34;y&#34;:0.989078085776965},{&#34;theta&#34;:0.17,&#34;probability&#34;:0.00796588655322165,&#34;confidence&#34;:0.984068226893557,&#34;x&#34;:0.17,&#34;y&#34;:0.984068226893557},{&#34;theta&#34;:0.18,&#34;probability&#34;:0.0112917413300254,&#34;confidence&#34;:0.977416517339949,&#34;x&#34;:0.18,&#34;y&#34;:0.977416517339949},{&#34;theta&#34;:0.19,&#34;probability&#34;:0.0156009338215457,&#34;confidence&#34;:0.968798132356909,&#34;x&#34;:0.19,&#34;y&#34;:0.968798132356909},{&#34;theta&#34;:0.2,&#34;probability&#34;:0.0210622247007996,&#34;confidence&#34;:0.957875550598401,&#34;x&#34;:0.2,&#34;y&#34;:0.957875550598401},{&#34;theta&#34;:0.21,&#34;probability&#34;:0.0278459398154536,&#34;confidence&#34;:0.944308120369093,&#34;x&#34;:0.21,&#34;y&#34;:0.944308120369093},{&#34;theta&#34;:0.22,&#34;probability&#34;:0.0361187364416553,&#34;confidence&#34;:0.927762527116689,&#34;x&#34;:0.22,&#34;y&#34;:0.927762527116689},{&#34;theta&#34;:0.23,&#34;probability&#34;:0.0460381355411022,&#34;confidence&#34;:0.907923728917795,&#34;x&#34;:0.23,&#34;y&#34;:0.907923728917795},{&#34;theta&#34;:0.24,&#34;probability&#34;:0.0577470468616008,&#34;confidence&#34;:0.884505906276798,&#34;x&#34;:0.24,&#34;y&#34;:0.884505906276798},{&#34;theta&#34;:0.25,&#34;probability&#34;:0.0713685123146205,&#34;confidence&#34;:0.857262975370759,&#34;x&#34;:0.25,&#34;y&#34;:0.857262975370759},{&#34;theta&#34;:0.26,&#34;probability&#34;:0.087000880960923,&#34;confidence&#34;:0.825998238078154,&#34;x&#34;:0.26,&#34;y&#34;:0.825998238078154},{&#34;theta&#34;:0.27,&#34;probability&#34;:0.104713607490085,&#34;confidence&#34;:0.790572785019829,&#34;x&#34;:0.27,&#34;y&#34;:0.790572785019829},{&#34;theta&#34;:0.28,&#34;probability&#34;:0.124543836956545,&#34;confidence&#34;:0.75091232608691,&#34;x&#34;:0.28,&#34;y&#34;:0.75091232608691},{&#34;theta&#34;:0.29,&#34;probability&#34;:0.146493903594774,&#34;confidence&#34;:0.707012192810451,&#34;x&#34;:0.29,&#34;y&#34;:0.707012192810451},{&#34;theta&#34;:0.3,&#34;probability&#34;:0.170529832729409,&#34;confidence&#34;:0.658940334541182,&#34;x&#34;:0.3,&#34;y&#34;:0.658940334541182},{&#34;theta&#34;:0.31,&#34;probability&#34;:0.196580894065467,&#34;confidence&#34;:0.606838211869065,&#34;x&#34;:0.31,&#34;y&#34;:0.606838211869065},{&#34;theta&#34;:0.32,&#34;probability&#34;:0.224540213842213,&#34;confidence&#34;:0.550919572315575,&#34;x&#34;:0.32,&#34;y&#34;:0.550919572315575},{&#34;theta&#34;:0.33,&#34;probability&#34;:0.254266414156535,&#34;confidence&#34;:0.49146717168693,&#34;x&#34;:0.33,&#34;y&#34;:0.49146717168693},{&#34;theta&#34;:0.34,&#34;probability&#34;:0.285586211691276,&#34;confidence&#34;:0.428827576617447,&#34;x&#34;:0.34,&#34;y&#34;:0.428827576617447},{&#34;theta&#34;:0.35,&#34;probability&#34;:0.318297876353866,&#34;confidence&#34;:0.363404247292267,&#34;x&#34;:0.35,&#34;y&#34;:0.363404247292267},{&#34;theta&#34;:0.36,&#34;probability&#34;:0.35217542389985,&#34;confidence&#34;:0.295649152200299,&#34;x&#34;:0.36,&#34;y&#34;:0.295649152200299},{&#34;theta&#34;:0.37,&#34;probability&#34;:0.386973396157569,&#34;confidence&#34;:0.226053207684862,&#34;x&#34;:0.37,&#34;y&#34;:0.226053207684862},{&#34;theta&#34;:0.38,&#34;probability&#34;:0.422432068373071,&#34;confidence&#34;:0.155135863253859,&#34;x&#34;:0.38,&#34;y&#34;:0.155135863253859},{&#34;theta&#34;:0.39,&#34;probability&#34;:0.458282915573536,&#34;confidence&#34;:0.083434168852929,&#34;x&#34;:0.39,&#34;y&#34;:0.083434168852929},{&#34;theta&#34;:0.4,&#34;probability&#34;:0.49425416856512,&#34;confidence&#34;:0.0114916628697606,&#34;x&#34;:0.4,&#34;y&#34;:0.0114916628697606},{&#34;theta&#34;:0.41,&#34;probability&#34;:0.530076294873525,&#34;confidence&#34;:0.0601525897470501,&#34;x&#34;:0.41,&#34;y&#34;:0.0601525897470501},{&#34;theta&#34;:0.42,&#34;probability&#34;:0.565487250045856,&#34;confidence&#34;:0.130974500091712,&#34;x&#34;:0.42,&#34;y&#34;:0.130974500091712},{&#34;theta&#34;:0.43,&#34;probability&#34;:0.6002373595472,&#34;confidence&#34;:0.200474719094401,&#34;x&#34;:0.43,&#34;y&#34;:0.200474719094401},{&#34;theta&#34;:0.44,&#34;probability&#34;:0.63409371017361,&#34;confidence&#34;:0.26818742034722,&#34;x&#34;:0.44,&#34;y&#34;:0.26818742034722},{&#34;theta&#34;:0.45,&#34;probability&#34;:0.666843951555161,&#34;confidence&#34;:0.333687903110321,&#34;x&#34;:0.45,&#34;y&#34;:0.333687903110321},{&#34;theta&#34;:0.46,&#34;probability&#34;:0.698299431988929,&#34;confidence&#34;:0.396598863977857,&#34;x&#34;:0.46,&#34;y&#34;:0.396598863977857},{&#34;theta&#34;:0.47,&#34;probability&#34;:0.728297617569333,&#34;confidence&#34;:0.456595235138667,&#34;x&#34;:0.47,&#34;y&#34;:0.456595235138667},{&#34;theta&#34;:0.48,&#34;probability&#34;:0.756703768450287,&#34;confidence&#34;:0.513407536900574,&#34;x&#34;:0.48,&#34;y&#34;:0.513407536900574},{&#34;theta&#34;:0.49,&#34;probability&#34;:0.783411870218361,&#34;confidence&#34;:0.566823740436722,&#34;x&#34;:0.49,&#34;y&#34;:0.566823740436722},{&#34;theta&#34;:0.5,&#34;probability&#34;:0.808344841003418,&#34;confidence&#34;:0.616689682006836,&#34;x&#34;:0.5,&#34;y&#34;:0.616689682006836},{&#34;theta&#34;:0.51,&#34;probability&#34;:0.831454055434115,&#34;confidence&#34;:0.66290811086823,&#34;x&#34;:0.51,&#34;y&#34;:0.66290811086823},{&#34;theta&#34;:0.52,&#34;probability&#34;:0.85271824431402,&#34;confidence&#34;:0.70543648862804,&#34;x&#34;:0.52,&#34;y&#34;:0.70543648862804},{&#34;theta&#34;:0.53,&#34;probability&#34;:0.872141843535642,&#34;confidence&#34;:0.744283687071284,&#34;x&#34;:0.53,&#34;y&#34;:0.744283687071284},{&#34;theta&#34;:0.54,&#34;probability&#34;:0.889752876987755,&#34;confidence&#34;:0.779505753975511,&#34;x&#34;:0.54,&#34;y&#34;:0.779505753975511},{&#34;theta&#34;:0.55,&#34;probability&#34;:0.905600465906429,&#34;confidence&#34;:0.811200931812859,&#34;x&#34;:0.55,&#34;y&#34;:0.811200931812859},{&#34;theta&#34;:0.56,&#34;probability&#34;:0.91975206126523,&#34;confidence&#34;:0.839504122530459,&#34;x&#34;:0.56,&#34;y&#34;:0.839504122530459},{&#34;theta&#34;:0.57,&#34;probability&#34;:0.932290496511752,&#34;confidence&#34;:0.864580993023504,&#34;x&#34;:0.57,&#34;y&#34;:0.864580993023504},{&#34;theta&#34;:0.58,&#34;probability&#34;:0.94331095546382,&#34;confidence&#34;:0.88662191092764,&#34;x&#34;:0.58,&#34;y&#34;:0.88662191092764},{&#34;theta&#34;:0.59,&#34;probability&#34;:0.952917944802709,&#34;confidence&#34;:0.905835889605417,&#34;x&#34;:0.59,&#34;y&#34;:0.905835889605417},{&#34;theta&#34;:0.6,&#34;probability&#34;:0.961222352743988,&#34;confidence&#34;:0.922444705487976,&#34;x&#34;:0.6,&#34;y&#34;:0.922444705487976},{&#34;theta&#34;:0.61,&#34;probability&#34;:0.968338665588788,&#34;confidence&#34;:0.936677331177577,&#34;x&#34;:0.61,&#34;y&#34;:0.936677331177577},{&#34;theta&#34;:0.62,&#34;probability&#34;:0.974382402457655,&#34;confidence&#34;:0.94876480491531,&#34;x&#34;:0.62,&#34;y&#34;:0.94876480491531},{&#34;theta&#34;:0.63,&#34;probability&#34;:0.979467816101886,&#34;confidence&#34;:0.958935632203771,&#34;x&#34;:0.63,&#34;y&#34;:0.958935632203771},{&#34;theta&#34;:0.64,&#34;probability&#34;:0.983705894787928,&#34;confidence&#34;:0.967411789575856,&#34;x&#34;:0.64,&#34;y&#34;:0.967411789575856},{&#34;theta&#34;:0.65,&#34;probability&#34;:0.987202687353466,&#34;confidence&#34;:0.974405374706932,&#34;x&#34;:0.65,&#34;y&#34;:0.974405374706932},{&#34;theta&#34;:0.66,&#34;probability&#34;:0.990057961096871,&#34;confidence&#34;:0.980115922193742,&#34;x&#34;:0.66,&#34;y&#34;:0.980115922193742},{&#34;theta&#34;:0.67,&#34;probability&#34;:0.992364190591014,&#34;confidence&#34;:0.984728381182028,&#34;x&#34;:0.67,&#34;y&#34;:0.984728381182028},{&#34;theta&#34;:0.68,&#34;probability&#34;:0.994205865151394,&#34;confidence&#34;:0.988411730302788,&#34;x&#34;:0.68,&#34;y&#34;:0.988411730302788},{&#34;theta&#34;:0.69,&#34;probability&#34;:0.995659093808592,&#34;confidence&#34;:0.991318187617184,&#34;x&#34;:0.69,&#34;y&#34;:0.991318187617184},{&#34;theta&#34;:0.7,&#34;probability&#34;:0.996791479430329,&#34;confidence&#34;:0.993582958860658,&#34;x&#34;:0.7,&#34;y&#34;:0.993582958860658},{&#34;theta&#34;:0.71,&#34;probability&#34;:0.997662228223176,&#34;confidence&#34;:0.995324456446352,&#34;x&#34;:0.71,&#34;y&#34;:0.995324456446352},{&#34;theta&#34;:0.72,&#34;probability&#34;:0.998322457253502,&#34;confidence&#34;:0.996644914507004,&#34;x&#34;:0.72,&#34;y&#34;:0.996644914507004},{&#34;theta&#34;:0.73,&#34;probability&#34;:0.998815660821706,&#34;confidence&#34;:0.997631321643412,&#34;x&#34;:0.73,&#34;y&#34;:0.997631321643412},{&#34;theta&#34;:0.74,&#34;probability&#34;:0.999178296394706,&#34;confidence&#34;:0.998356592789413,&#34;x&#34;:0.74,&#34;y&#34;:0.998356592789413},{&#34;theta&#34;:0.75,&#34;probability&#34;:0.999440452181261,&#34;confidence&#34;:0.998880904362522,&#34;x&#34;:0.75,&#34;y&#34;:0.998880904362522},{&#34;theta&#34;:0.76,&#34;probability&#34;:0.99962656110662,&#34;confidence&#34;:0.99925312221324,&#34;x&#34;:0.76,&#34;y&#34;:0.99925312221324},{&#34;theta&#34;:0.77,&#34;probability&#34;:0.999756129655175,&#34;confidence&#34;:0.99951225931035,&#34;x&#34;:0.77,&#34;y&#34;:0.99951225931035},{&#34;theta&#34;:0.78,&#34;probability&#34;:0.999844454527686,&#34;confidence&#34;:0.999688909055371,&#34;x&#34;:0.78,&#34;y&#34;:0.999688909055371},{&#34;theta&#34;:0.79,&#34;probability&#34;:0.99990330502023,&#34;confidence&#34;:0.99980661004046,&#34;x&#34;:0.79,&#34;y&#34;:0.99980661004046},{&#34;theta&#34;:0.8,&#34;probability&#34;:0.999941554197265,&#34;confidence&#34;:0.99988310839453,&#34;x&#34;:0.8,&#34;y&#34;:0.99988310839453},{&#34;theta&#34;:0.81,&#34;probability&#34;:0.999965747040655,&#34;confidence&#34;:0.99993149408131,&#34;x&#34;:0.81,&#34;y&#34;:0.99993149408131},{&#34;theta&#34;:0.82,&#34;probability&#34;:0.999980598578908,&#34;confidence&#34;:0.999961197157815,&#34;x&#34;:0.82,&#34;y&#34;:0.999961197157815},{&#34;theta&#34;:0.83,&#34;probability&#34;:0.999989419342954,&#34;confidence&#34;:0.999978838685909,&#34;x&#34;:0.83,&#34;y&#34;:0.999978838685909},{&#34;theta&#34;:0.84,&#34;probability&#34;:0.999994469208827,&#34;confidence&#34;:0.999988938417654,&#34;x&#34;:0.84,&#34;y&#34;:0.999988938417654},{&#34;theta&#34;:0.85,&#34;probability&#34;:0.999997243675202,&#34;confidence&#34;:0.999994487350403,&#34;x&#34;:0.85,&#34;y&#34;:0.999994487350403},{&#34;theta&#34;:0.86,&#34;probability&#34;:0.999998698837753,&#34;confidence&#34;:0.999997397675507,&#34;x&#34;:0.86,&#34;y&#34;:0.999997397675507},{&#34;theta&#34;:0.87,&#34;probability&#34;:0.999999422764826,&#34;confidence&#34;:0.999998845529652,&#34;x&#34;:0.87,&#34;y&#34;:0.999998845529652},{&#34;theta&#34;:0.88,&#34;probability&#34;:0.999999761697516,&#34;confidence&#34;:0.999999523395032,&#34;x&#34;:0.88,&#34;y&#34;:0.999999523395032},{&#34;theta&#34;:0.89,&#34;probability&#34;:0.999999909577602,&#34;confidence&#34;:0.999999819155204,&#34;x&#34;:0.89,&#34;y&#34;:0.999999819155204},{&#34;theta&#34;:0.9,&#34;probability&#34;:0.999999968963797,&#34;confidence&#34;:0.999999937927595,&#34;x&#34;:0.9,&#34;y&#34;:0.999999937927595},{&#34;theta&#34;:0.91,&#34;probability&#34;:0.999999990564098,&#34;confidence&#34;:0.999999981128196,&#34;x&#34;:0.91,&#34;y&#34;:0.999999981128196},{&#34;theta&#34;:0.92,&#34;probability&#34;:0.999999997530193,&#34;confidence&#34;:0.999999995060386,&#34;x&#34;:0.92,&#34;y&#34;:0.999999995060386},{&#34;theta&#34;:0.93,&#34;probability&#34;:0.999999999465214,&#34;confidence&#34;:0.999999998930428,&#34;x&#34;:0.93,&#34;y&#34;:0.999999998930428},{&#34;theta&#34;:0.94,&#34;probability&#34;:0.999999999909645,&#34;confidence&#34;:0.999999999819289,&#34;x&#34;:0.94,&#34;y&#34;:0.999999999819289},{&#34;theta&#34;:0.95,&#34;probability&#34;:0.99999999998912,&#34;confidence&#34;:0.99999999997824,&#34;x&#34;:0.95,&#34;y&#34;:0.99999999997824},{&#34;theta&#34;:0.96,&#34;probability&#34;:0.999999999999198,&#34;confidence&#34;:0.999999999998396,&#34;x&#34;:0.96,&#34;y&#34;:0.999999999998396},{&#34;theta&#34;:0.97,&#34;probability&#34;:0.999999999999973,&#34;confidence&#34;:0.999999999999945,&#34;x&#34;:0.97,&#34;y&#34;:0.999999999999945},{&#34;theta&#34;:0.98,&#34;probability&#34;:1,&#34;confidence&#34;:1,&#34;x&#34;:0.98,&#34;y&#34;:1},{&#34;theta&#34;:0.99,&#34;probability&#34;:1,&#34;confidence&#34;:1,&#34;x&#34;:0.99,&#34;y&#34;:1},{&#34;theta&#34;:1,&#34;probability&#34;:1,&#34;confidence&#34;:1,&#34;x&#34;:1,&#34;y&#34;:1}],&#34;type&#34;:&#34;line&#34;}],&#34;xAxis&#34;:{&#34;type&#34;:&#34;linear&#34;,&#34;title&#34;:{&#34;text&#34;:&#34;theta&#34;},&#34;categories&#34;:null},&#34;tooltip&#34;:{&#34;valueDecimals&#34;:4,&#34;valuePrefix&#34;:&#34;conf level = &#34;}},&#34;theme&#34;:{&#34;chart&#34;:{&#34;backgroundColor&#34;:&#34;transparent&#34;}},&#34;conf_opts&#34;:{&#34;global&#34;:{&#34;Date&#34;:null,&#34;VMLRadialGradientURL&#34;:&#34;http =//code.highcharts.com/list(version)/gfx/vml-radial-gradient.png&#34;,&#34;canvasToolsURL&#34;:&#34;http =//code.highcharts.com/list(version)/modules/canvas-tools.js&#34;,&#34;getTimezoneOffset&#34;:null,&#34;timezoneOffset&#34;:0,&#34;useUTC&#34;:true},&#34;lang&#34;:{&#34;contextButtonTitle&#34;:&#34;Chart context menu&#34;,&#34;decimalPoint&#34;:&#34;.&#34;,&#34;downloadJPEG&#34;:&#34;Download JPEG image&#34;,&#34;downloadPDF&#34;:&#34;Download PDF document&#34;,&#34;downloadPNG&#34;:&#34;Download PNG image&#34;,&#34;downloadSVG&#34;:&#34;Download SVG vector image&#34;,&#34;drillUpText&#34;:&#34;Back to {series.name}&#34;,&#34;invalidDate&#34;:null,&#34;loading&#34;:&#34;Loading...&#34;,&#34;months&#34;:[&#34;January&#34;,&#34;February&#34;,&#34;March&#34;,&#34;April&#34;,&#34;May&#34;,&#34;June&#34;,&#34;July&#34;,&#34;August&#34;,&#34;September&#34;,&#34;October&#34;,&#34;November&#34;,&#34;December&#34;],&#34;noData&#34;:&#34;No data to display&#34;,&#34;numericSymbols&#34;:[&#34;k&#34;,&#34;M&#34;,&#34;G&#34;,&#34;T&#34;,&#34;P&#34;,&#34;E&#34;],&#34;printChart&#34;:&#34;Print chart&#34;,&#34;resetZoom&#34;:&#34;Reset zoom&#34;,&#34;resetZoomTitle&#34;:&#34;Reset zoom level 1:1&#34;,&#34;shortMonths&#34;:[&#34;Jan&#34;,&#34;Feb&#34;,&#34;Mar&#34;,&#34;Apr&#34;,&#34;May&#34;,&#34;Jun&#34;,&#34;Jul&#34;,&#34;Aug&#34;,&#34;Sep&#34;,&#34;Oct&#34;,&#34;Nov&#34;,&#34;Dec&#34;],&#34;thousandsSep&#34;:&#34; &#34;,&#34;weekdays&#34;:[&#34;Sunday&#34;,&#34;Monday&#34;,&#34;Tuesday&#34;,&#34;Wednesday&#34;,&#34;Thursday&#34;,&#34;Friday&#34;,&#34;Saturday&#34;]}},&#34;type&#34;:&#34;chart&#34;,&#34;fonts&#34;:[],&#34;debug&#34;:false},&#34;evals&#34;:[],&#34;jsHooks&#34;:[]}&lt;/script&gt;
&lt;p&gt;Pick a point on the left branch of the curve. The y value gives you the level of confidence and the x value is the lower bound of the corresponding confidence interval. Move horizontally across to the right branch to read off the upper end of the confidence interval. So reading up and down the curve you can read off the confidence intervals for any value of confidence.&lt;/p&gt;
&lt;p&gt;As a check, we compute the 95% confidence interval for &lt;span class=&#34;math inline&#34;&gt;\(\theta\)&lt;/span&gt; using the normal approximation to the binomial.&lt;/p&gt;
&lt;pre class=&#34;r&#34;&gt;&lt;code&gt;ub &amp;lt;- 8 / 20 + (1.96 / 20) * sqrt(8 * 12 / 20)
lb &amp;lt;- 8 / 20 - (1.96 / 20) * sqrt(8 * 12 / 20)
cat(&amp;quot;95% CI = [&amp;quot; , lb , &amp;quot;,&amp;quot; , ub, &amp;quot;]&amp;quot;)&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;## 95% CI = [ 0.1853 , 0.6147 ]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you are a Bayesian, there is a really amusing side to confidence distributions. In order to be clear that what they are doing with confidence distributions is in fact different from what Bayesians do when they choose priors, the champions of confidence distributions appeal to &lt;a href=&#34;https://plato.stanford.edu/entries/epistemology/&#34;&gt;epistomology&lt;/a&gt;, the study of knowledge and justified belief. On page (xiv) of their book, Schweder and Hjort write:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The concept of confidence distribution is rather basic, but has proved difficult for statisticians to accept. The main reason is perhaps that confidence distributions represent epistemic probability obtained from the aleatory probability of the statistical model (i.e. the chance variation in nature and society), and to face both types of probability at the same time might be challenging. The traditional Bayesian deals only with subjective probability, which is epistemic when based on knowledge, and the frequentist of the Neyman-Wald school deals only with sampling variability, that is, aleatory probability.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Please indulge me while I unpack this. Aleatory probabilities are what nature and the world give us: the decay times of alpha particles, the valuable behaviors of large populations, etc. Hard-core frequentists will only allow themselves to compute aleatory probabilities. As soon as you compute a confidence distribution or even a confidence interval, you are working with epistemic probabilities: what you believe would be true under repeated sampling that may be impossible to actually carry out. But, you are justified in doing this because these epistemic probabilities are anchored in aleatory probabilities. When Bayesians base their choice of priors on rational beliefs based on plausible evidence, they are on the same epistemic footing as frequentists computing confidence intervals. When Bayesians are capricious in choosing their priors, they are not. Asking most statisticians to think about these things gives them headaches. Thus, quietly, in work that builds bridges, ends the Bayesian vs. Frequentist controversy.&lt;/p&gt;
&lt;p&gt;Notes:&lt;br /&gt;
1. Schweder and Hjolt’s book is really worth owning. Not only does it offer a comprehensive account of confidence distributions and how they may be useful in practice, but it is also a good general reference on statistical inference.&lt;/p&gt;
&lt;ol start=&#34;2&#34; style=&#34;list-style-type: decimal&#34;&gt;
&lt;li&gt;If you are interested in exploring confidence distributions further, have a look at the &lt;a href=&#34;https://CRAN.R-project.org/package=pvaluefunctions&#34;&gt;pvaluefunctions&lt;/a&gt; and &lt;a href=&#34;https://cran.r-project.org/package=gmeta&#34;&gt;gmeta&lt;/a&gt; that are both on CRAN.&lt;/li&gt;
&lt;/ol&gt;

        &lt;script&gt;window.location.href=&#39;https://rviews.rstudio.com/2019/11/05/a-first-look-at-confidence-distributions/&#39;;&lt;/script&gt;
      </description>
    </item>
    
  </channel>
</rss>
