June 2019

Computation time of loops — for, *apply, map

June 19, 2019 | Ulrik Stervbo

It is usually said, that for– and while-loops should be avoided in R. I was curious about just how the different alternatives compare in terms of speed. The first loop is perhaps the worst I can think of – the return vector is initialized without type and length so that the ...
[Read more...]

A Gentle Introduction to tidymodels

June 18, 2019 | R Views

Recently, I had the opportunity to showcase tidymodels in workshops and talks. Because of my vantage point as a user, I figured it would be valuable to share what I have learned so far. Let’s begin by framing where tidymodels fits in our analysis projects. The diagram above is ...
[Read more...]

Cohen’s D for Experimental Planning

June 18, 2019 | Nina Zumel

In this note, we discuss the use of Cohen’s D for planning difference-of-mean experiments. Estimating sample size Let’s imagine you are testing a new weight loss program and comparing it so some existing weight loss regimen. You want to run an experiment to determine if the new program ...
[Read more...]

Quick hit: Some ggplot2 Stat ???? for {logspline}

June 18, 2019 | hrbrmstr

I’ve become a big fan of the {logspline} package over the past ~6 months and decided to wrap up a manual ggplot2 plotting process (well, it was at least in an RStudio snippet) into a small {ggplot2} Stat to make it easier to visualize various components of the fitted model. ... [Read more...]

How to Perform Ordinal Logistic Regression in R

June 18, 2019 | Perceptive Analytics

In this article, we discuss the basics of ordinal logistic regression and its implementation in R. Ordinal logistic regression is a widely used classification method, with applications in variety of domains. This method is the go-to tool when there is a natural ordering in the dependent variable. For example, dependent ...
[Read more...]

anytime 0.3.4

June 18, 2019 | Thinking inside the box

A new minor release of the anytime package is arriving on CRAN. This is the fifteenth release, and first since the 0.3.3 release in November. anytime is a very focused package aiming to do just one thing really well: to convert anything in integer, n... [Read more...]

radian: a modern console for R

June 18, 2019 | Gavin L. Simpson

Whenever I’m developing R code or writing data wrangling or analysis scripts for research projects that I work on I use Emacs and its add-on package Emacs Speaks Statistics (ESS). I’ve done so for nigh on a couple of decades now, ever since I switched full time to ...
[Read more...]

Parametric survival modeling

June 17, 2019 | Devin Incerti

Introduction Survival distributions Shapes of hazard functions Exponential distribution Weibull distribution (AFT) Weibull distribution (PH) Gompertz distribution Gamma distribution Lognormal distribution Log-logistic distribution Generalized gamma distribution Regression Intercept only model Adding covariates Conclusion Introduction Survival analysis is used to analyze the time until the occurrence of an event (or multiple ...
[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)