Articles by Rstats on pi: predict/infer

Introduction to Stan in R

September 7, 2020 | Rstats on pi: predict/infer

This blog post will talk about Stan and how to create Stan models in R using the rstan and rstanarm packages. Although Stan provides documentation for using its programming language and a user’s guide with examples, it can be difficult to follow for a ...
[Read more...]

Data Pivoting with tidyr

October 7, 2019 | Rstats on pi: predict/infer

Reshaping data from long to wide format, or wide to long format, is a common task in data science. Until recently, the best functions for performing this task in R were the gather and spread functions from the tidyr package. However, these functions had limitations, such as only being able ... [Read more...]

Errors and Debugging in RStudio

August 28, 2019 | Rstats on pi: predict/infer

Diagnosing and fixing errors in your code can be time-consuming and frustrating. There are two ways you can make your life easier. The first is knowing the tools at your disposal in RStudio to debug errors. RStudio provides a variety of tools to help you diagnose the problem at its ...
[Read more...]

How to Do Mediation Scientifically

August 8, 2019 | Rstats on pi: predict/infer

Mediation analysis has been around a long time, though its popularity has varied between disciplines and over the years. While some fields have been attracted to the potential of mediation models to identify pathways, or mechanisms, through which an independent variable affects an outcome, others have been skeptical that the ... [Read more...]

Plotly for R – Multi-Layer Plots

July 29, 2019 | Rstats on pi: predict/infer

If you are new to plotly, consider first reading our introductory post:Introduction to Interactive Graphics in R with plotly   Often when analyzing data, it is necessary to produce a complex plot that requires multiple graphical layers. In plotly, multi-layer plots can be specified as a pipeline of data manipulations (... [Read more...]

A Tour of Timezones (& Troubles) in R

July 2, 2018 | Rstats on pi: predict/infer

In any programming tool, dates, times, and timezones are hard. Deceptively hard. They’ve been shaped by politics and whimsy for hundreds of years: timezones can shift with minimal notice, countries have skipped or repeated certain days, some are offset by weird increments, some observe Daylight Saving Time, leap years, ... [Read more...]

Highlights from rstudio::conf 2018

March 14, 2018 | Rstats on pi: predict/infer

The second-annual rstudio::conf was held in San Diego at the end of January, bringing together a wide range of speakers, topics, and attendees. Covering all of it would require several people and a lot of space, but I’d like to highlight two broad topics that received a lot ... [Read more...]

Delta Method Standard Errors

January 9, 2018 | Rstats on pi: predict/infer

Logistic regression produces result that are typically interpreted in one of two ways: Predicted probabilities Odds ratios Odds are the ratio of the probability that something happens to the probabilty it doesn’t happen. \[ \Omega(X) = \frac{p(y=1|X)}{1-p(y=1|X)} \] An odds ratio is the ratio of ...
[Read more...]

Interpreting Logistic Models

January 6, 2018 | Rstats on pi: predict/infer

The purpose of this blog post is to review the derivation of the logit estimator and the interpretation of model estimates. Logit models are commonly used in statistics to test hypotheses related to binary outcomes, and the logistic classifier is commonly used as a pedagogic tool in machine learning courses ...
[Read more...]

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)