Generating arbitrary distributions with R

(This is tenth and final article in the series Using R for Gambet statistical analysis.[1]) The R package includes functions to create a wide array of distributions of interest in mathematics. Nonetheless, there are many particle distributions of interest in physics (such as differential cross sections) that are not directly represented. This article introduces a method […]

Creating GamBet SRC files with R

(This is ninth article in the series Using R for Gambet statistical analysis.[1]) The focus of this article is to learn how to generate particle distributions with R and how to export them in a form that can be used directly as input to GamBet. A second topic is how to run R scripts directly from […]

Importing GamBet files into R

(This is eighth article in the series Using R for Gambet statistical analysis.[1]) In the previous articles, we studied R techniques that would be useful to supplement most technical programs. In this article and the next, we’ll concentrate on integrating R with GamBet. The GamBet program produces two types of text data files [2] that can […]

Nonlinear fitting and parameter estimation

(This is seventh article in the series Using R for Gambet statistical analysis.[1]) To this point, we have carried out basic statistical calculations with R. With some effort, we could perform the operations in spreadsheets or our own programs. In this article, we’ll turn to a much more sophisticated calculation that would be difficult to reproduce: […]

Working with RStudio: multi-dimensional fitting

(This is sixth article in the series Using R for Gambet statistical analysis.[1]) RStudio is an integrated development environment (IDE) for working with R, similar to the IDEs available for most computer languages. Figure 1 shows a screenshot. There are work areas for the script editor, console and plots. The difference is that they are combined […]