Genotype experiments: fitting a stability variance model with R

Yield stability is a fundamental aspect for the selection of crop genotypes. The definition of stability is rather complex (see, for example, Annichiarico, 2002); in simple terms, the yield is stable when it does not change much from one environment to the other. It is an important trait, that helps farmers to maintain a good income in most years. Agronomists...

Read more »

Testing Contrasts from Bayesian Models with ’emmeans’ and ‘bayestestR’

June 5, 2019
By
Testing Contrasts from Bayesian Models with ’emmeans’ and ‘bayestestR’

The Problem with Null Effects Say you fit an ANOVA model, predicting the time it takes to solve a puzzle from its shape (round / square) and whether it was colored or black and white, and you found that one of the estimated effects, in this case the interaction, was not significant. Say even that it was as non-significant as...

Read more »

Coding Random Forests in 100 lines of code*

June 5, 2019
By
Coding Random Forests in 100 lines of code*

In our series of explaining method in 100 lines of code, we tackle random forest this time! We build it from scratch and explore it's functions. Der Beitrag Coding Random Forests in 100 lines of code* erschien zuerst auf STATWORX.

Read more »

Getting Open Data into R from CKAN

June 4, 2019
By

Preamble Open Data in Scotland Querying CKAN Querying with Custom JSON Querying with SQL Conclusions and Further Ideas Preamble I’ve got lots of rough pieces of R code written as I’ve been exploring/testing various things in the past. A lot of this is currently stored in a pretty disorganised fashion so I thought it would be a good idea to start writing some of these up...

Read more »

Getting Open Data into R from CKAN

June 4, 2019
By

Preamble Open Data in Scotland Querying CKAN Querying with Custom JSON Querying with SQL Conclusions and Further Ideas Preamble I’ve got lots of rough pieces of R code written as I’ve been exploring/testing various things in the past. A lot of this is currently stored in a pretty disorganised fashion so I thought it would be a good idea to start writing some of these up...

Read more »

Simulating Emotions during a Basketball Game – Just a Feeling in the Crowd

June 4, 2019
By
Simulating Emotions during a Basketball Game – Just a Feeling in the Crowd

Sporting events host witness to a wide range of human emotion. The emotional ups and downs are especially clear among invested fans. Fans experience the joy and excitement of a triumphant comeback, or the anxiety and disappointment of a loss. It is particularly interesting to see how emotions differ from two opposing fan groups watching the same match. I decided...

Read more »

Hybrid Machine Learning Forecasts for the 2019 FIFA Women’s World Cup

June 4, 2019
By
Hybrid Machine Learning Forecasts for the 2019 FIFA Women’s World Cup

Using a random forest ensemble learner we obtain probabilistic forecasts for the FIFA Women's World Cup in France: The clear favorite is defending champion USA followed, with some margin, by host France, England, and Germany. ...

Read more »

Email Automation for Google Trends

June 4, 2019
By
Email Automation for Google Trends

This blogpost will teach you set up automated email reports to view how search volumes i.e. Google Trends vary over time. The email report will also include important search terms that are “rising” or near a “breakout point”. This can be really useful as the breakout keywords indicate users across the globe have recently started

Read more »

AzureR and AzureKeyVault

June 4, 2019
By

by Hong Ooi, senior data scientist, Microsoft Azure Just a couple of announcements regarding my family of packages for working with Azure from R. First, the packages have moved from the cloudyr org on GitHub to the Azure org, thus making them "official". A (rather spartan) homepage is here, containing links to the individual repos: https://github.com/Azure/AzureR The cloudyr repos...

Read more »

A Shiny Comrades Marathon Pacing App

June 3, 2019
By
A Shiny Comrades Marathon Pacing App

The Comrades Marathon is an epic ultramarathon run each year between Durban and Pietermaritzburg (South Africa). A few years ago I put together a simple spreadsheet for generating a Comrades Marathon pacing strategy. But the spreadsheet was clunky to use and laborious to maintain. Plus I was frustrated by the crude plots (largely due to my limited spreadsheet proficiency). It...

Read more »

Introducing DeclareDesign, a Platform for Research Design

June 3, 2019
By
Introducing DeclareDesign, a Platform for Research Design

Graeme Blair is an Assistant Professor of Political Science at UCLA. Jasper Cooper is a Postdoctoral Research Associate at the Kahneman-Treisman Center for Behavioral Science and Public Policy at Princeton University. Alexander Coppock is an Assistant Professor of Political Science at Yale University. Macartan Humphreys is a Professor of Political Science at Columbia University and a Director of the research group “Institutions...

Read more »

Access Publisher Copyright & Self-Archiving Policies via the ‘SHERPA/RoMEO’ API

Access Publisher Copyright & Self-Archiving Policies via the ‘SHERPA/RoMEO’ API

We’ve been following rOpenSci’s work for a long time, and we use several packages on a daily basis for our scientific projects, especially taxize to clean species names, rredlist to extract species IUCN statuses or treeio to work with phylogenetic trees. rOpensci is a perfect incarnation of vibrant and diverse community where people learn and develop new ideas, especially regarding...

Read more »

Using cosine similarity to find matching documents: a tutorial using Seneca’s letters to his friend Lucilius

Using cosine similarity to find matching documents: a tutorial using Seneca’s letters to his friend Lucilius

Lately I’ve been interested in trying to cluster documents, and to find similar documents based on their contents. In this blog post, I will use Seneca’s Moral letters to Lucilius and compute the pairwise cosine similarity of his 124 letters. Computing the cosine similarity between two vectors returns how similar these vectors are. A cosine similarity of 1 means that the angle between...

Read more »

Kites and Darts: the Penrose Tiling

June 3, 2019
By
Kites and Darts: the Penrose Tiling

Agarrada a mis costillas le cuelgan las piernas (Godzilla, Leiva) Penrose tilings are amazing. Apart of the inner beauty of tesselations, they have two interesting properties: they are non-periodic (they lack any translational symmetry) and self-similar (any finite region appears an infinite number of times in the tiling). Both characteristics make them a kind of … Continue reading Kites...

Read more »

Pareto Models for Top Incomes

June 3, 2019
By

With Emmanuel Flachaire, we uploaded on hal a paper on Pareto Models for Top Incomes, Top incomes are often related to Pareto distribution. To date, economists have mostly used Pareto Type I distribution to model the upper tail of income and wealth distribution. It is a parametric distribution, with an attractive property, that can be easily linked to economic...

Read more »

Learning R: Permutations and Combinations with base R

June 3, 2019
By
Learning R: Permutations and Combinations with base R

The area of combinatorics, the art of systematic counting, is dreaded territory for many people so let us bring some light into the matter: in this post we will explain the difference between permutations and combinations, with and without repetitions, will calculate the number of possibilities and present efficient R code to enumerate all of … Continue reading "Learning...

Read more »

What is a Statistic?

June 2, 2019
By
What is a Statistic?

What is a Statistic? A statistic is a mathematical operation on a data set, performed to get information from the data. Below is the R code that generates 20 random samples. The samples are uniformly distributed between 0 and 1. Uniformly means all the data samples are equally likely, like when you flip a coin heads and...

Read more »

Become a Bayesian master with bayestestR (0.2)

June 2, 2019
By
Become a Bayesian master with bayestestR (0.2)

bayestestR 0.2 is here! As you might have heard from previous posts, we have recently started to collaborate around the new easystats project, a suite of packages designed to make your life easier. One of the packages, bayestestR, has just been up...

Read more »

Become a Bayesian master with bayestestR (0.2)

June 2, 2019
By
Become a Bayesian master with bayestestR (0.2)

bayestestR 0.2 is here! As you might have heard from previous posts, we have recently started to collaborate around the new easystats project, a suite of packages designed to make your life easier. One of the packages, bayestestR, has just been up...

Read more »

Same name, different bird

June 2, 2019
By
Same name, different bird

What do we mean when we see a bird and say that it’s a robin? A simple description would be a small brownish bird with a red breast. But that’s a superficial description, and when we say “robin” what we mean depends on your location; you don’t have to look very closely to see that the European and American...

Read more »

Visualizing the Green New Deal with R Shiny

June 2, 2019
By
Visualizing the Green New Deal with R Shiny

New York has pressed on with environmental legislation while the nation dawdles - where and by whom will the impact be felt? Shiny app | GitHub As mentioned in my last post, effective and timely legislation will be a key weapon in the battle to keep greenhouse gas emissions at sustainable levels and avoiding an

Read more »

Trawling Through iOS Backups For Treasure (a.k.a. How to fish for target files in iOS backups) with R

June 2, 2019
By
Trawling Through iOS Backups For Treasure (a.k.a. How to fish for target files in iOS backups) with R

In a recent previous post I brazenly talked over the “hard parts” of how I got to the target SQLite file that houses “mowing history” for what has become my weekend obsession. So, we’ll cover just how to do that (find things in iOS backups) in this post along with how to deal with some... Continue reading →

Read more »

Quick Hit: Handling Cocoa Core Data Timestamps in R

June 1, 2019
By

For the first time ever we got a new riding mower this weekend. We’ve always haggled to keep the one sellers were using with any given house we’ve purchased over the years (that was big enough for a yard that “requires” a riding mower). We ended up getting a model from John Deere and the... Continue reading →

Read more »

Sometimes the Best Documentation is Code You’ve Already Written

June 1, 2019
By
Sometimes the Best Documentation is Code You’ve Already Written

When you’ve been writing R code for long enough, you’ll invariably encounter a challenge you’ve faced before. It may be remembering whether to use the color or fill parameter for a line geom in ggplot, what to put in an R notebook chunk header to prevent the code from displaying, or how to convert a character string to a...

Read more »

Here is Your Data

June 1, 2019
By

It’s a common situation: you want to code and debug in R *and* leverage RMarkdown for a presentation or document. The challenge: file paths. Executing code in the console and from within a saved RMarkdown document typically requires distinct file paths to locate data files. While you’re writing your code and debugging, you’ve probably got your source … Continue reading Here...

Read more »

Running cross_validate from cvms in parallel

May 31, 2019
By

The cvms package is useful for cross-validating a list of linear and logistic regression model formulas in R. To speed up the process, I’ve added the option to cross-validate the… Read More → Indlægget Running cross_validate from cvms in parallel blev først udgivet på .

Read more »

Getting an environment’s name in R: the envnames package

May 31, 2019
By
Getting an environment’s name in R: the envnames package

The name of user-defined environments cannot be retrieved in base R. Examples are shown on how the envnames package is used to circumvent this problem, in addition to looking for objects defined in user-defined environments. The post Getting an environment's name in R: the envnames package appeared first on MilanoR.

Read more »

Making a Command Line HTML Rendering Script for “The Art of the Command Line” (in R)

May 31, 2019
By
Making a Command Line HTML Rendering Script for “The Art of the Command Line” (in R)

The Feedly category I have setup for git-stalking has indicated a fairly massive interest in Joshua Levy’s The Art of the Command Line. What is “The Art of the Command Line”? To quote the author(s): Fluency on the command line is a skill often neglected or considered arcane, but it improves your flexibility and productivity... Continue reading →

Read more »

Full EARL London 2019 agenda available

May 31, 2019
By

Once again, we are delighted to announce a stellar line up of speakers for this year’s EARL Conference; from Retail and Insurance to Media, Manufacturing and Pharmaceutical, the range of industries now using R stats in their workflow continues to grow. If you are interested to hear why companies such as BBC News, BMW Group, Arla Foods, GSK, Microsoft, Hiscox, Mumsnet and...

Read more »

Search R-bloggers

Sponsors