February 2020

Dataviz Workshop at RStudio::conf

February 18, 2020 | R on kieranhealy.org

Workshop materials are available here: https://rstd.io/conf20-dataviz Consider buying the book; it’s good: Data Visualization: A Practical Introduction / Buy on Amazon I was delighted to have the opportunity to teach a two-day workshop on Data Visualization using ggplot2 at this year’s rstudio::conf(2020) in January. ... [Read more...]

jagsAddIn: an RStudio AddIn

February 18, 2020 | Nathan Green

I have been aware of the RStudio AddIns for a while now but never really saw the usefulness in them (see here https://rstudio.github.io/rstudioaddins/). To me the benefit of using RStudio is so coding in R is more fun and including more menus and clicking and taking ... [Read more...]

Get Better: R for absolute beginners

February 18, 2020 | quantixed

As part of the series on development of early career researchers in the lab, we spent three sessions over three weeks learning the basics of R. In my book “The Digital Cell”, I advocate R as the main number-crunching software but the R literacy in my lab is actually quite ...
[Read more...]

How is information gain calculated?

February 17, 2020 | Andrew Treadway

This post will explore the mathematics behind information gain. We’ll start with the base intuition behind information gain, but then explain why it has the calculation that it does. What is information gain? Information gain is a measure frequently used in decision trees to determine which variable to split ...
[Read more...]

Lasso Regression (home made)

February 17, 2020 | arthur charpentier

To compute Lasso regression, define the soft-thresholding functionThe R function would be soft_thresholding = function(x,a){ sign(x) * pmax(abs(x)-a,0) } To solve our optimization problem, set so that the optimization problem can be written, equivalently hence and one gets or, if we develop Again, if there are ...
[Read more...]

Getting started in R markdown

February 17, 2020 | R on Stats and R

R Markdown: what, why and how? Before you start Components of a .Rmd file YAML header Code chunks Text Code inside text Highlight text like it is code Images Tables Additional notes and useful resources If you have spent some time writing cod...
[Read more...]

Tracking R&D spending by 700 Listed US Pharma Companies – Part 2

February 17, 2020 | R on Redwall Analytics

# Re-load data previously stored for purposes of this blog post
pharma <- 
  fread("~/Desktop/David/Projects/xbrl_investment/data/pharma_inc.csv")
Introduction In A Walk Though of Accessing Financial Statements with XBRL in R - Part 1, we went through the first steps of pulling XBRL data for a single company from Edgar into R. Although an improvement over manual plugging of numbers into a Excel, there is still a way ...
[Read more...]

Efficient Data Management in R

February 17, 2020 | R on Methods Bites

The software environment R is widely used for data analysis and data visualization in the social sciences and beyond. Additionally, it is becoming increasingly popular as a tool for data and file management. Focusing on these latter aspects, this Methods Bites Tutorial by Marcel Neunhoeffer, Oliver Rittmann and our team ...
[Read more...]

rstudio::conf 2020 Videos

February 17, 2020 | R Views

rstudio::conf 2020 is already receding in the rear view mirror, but the wealth of resources generated by the conference will be valuable for quite some time. All of the materials from the workshops, and now all one hundred and four videos of conference talks are available. This unique video collection ...
[Read more...]

Getting started in R markdown

February 17, 2020 | R on Stats and R

R Markdown: what, why and how? Before you start Components of a .Rmd file YAML header Code chunks Text Code inside text Images Tables Additional notes and useful resources Photo by Jon Tyson If you have spent some time writing code in R, you probably have heard of generating dynamic ...
[Read more...]

Efficient Data Management in R

February 17, 2020 | R on Methods Bites

The software environment R is widely used for data analysis and data visualization in the social sciences and beyond. Additionally, it is becoming increasingly popular as a tool for data and file management. Focusing on these latter aspects, this Methods Bites Tutorial by Marcel Neunhoeffer, Oliver Rittmann and our team ...
[Read more...]

Clustered randomized trials and the design effect

February 17, 2020 | Keith Goldfeld

I am always saying that simulation can help illuminate interesting statistical concepts or ideas. The design effect that underlies much of clustered analysis is could benefit from a little exploration through simulation. I’ve written about clustered-related methods so much on this blog that I won’t provide links - ...
[Read more...]

Quantile Regression (home made, part 2)

February 17, 2020 | arthur charpentier

A few months ago, I posted a note with some home made codes for quantile regression… there was something odd on the output, but it was because there was a (small) mathematical problem in my equation. So since I should teach those tomorrow, let me fix them. Median Consider a ...
[Read more...]

Creating MS Word reports using the officer package

February 17, 2020 | Yossi Levy

Commonly, the final product that a data scientist or a statistician generates is a report, usually in MS Word format. The officer package enables generating such a report from within R. It also enables generating PowerPoint presentations, but this is… Continue reading →
[Read more...]

What `R` you? (R dataframe vs python dataframe)

February 16, 2020 | R on notast

Recap Previously in this series, we discovered the equivalent python data structures for the following R data structures: vectors lists arrays/matrixes In this post, we will look at translating R data frames into python. We will also compare and contrast data frames in R and python. R data frame ... [Read more...]
1 4 5 6 7 8 13

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)