# 2128 search results for "regression"

## How long could it take to run a regression

April 6, 2016
By
$n$

This afternoon, while I was discussing with Montserrat (aka @mguillen_estany) we were wondering how long it might take to run a regression model. More specifically, how long it might take if we use a Bayesian approach. My guess was that the time should probably be linear in , the number of observations. But I thought I would be good to check. Let...

## Assessing significance of slopes in regression models with interaction

March 17, 2016
By

This is a pretty short post on an issue that popped at some point in the past, at that time I found a way around it but as it arose again recently I decided to go through it. The issue I had was that when modeling an interaction between a continuous (say temperature) and a Related Post

## How to export Regression results from R to MS Word

March 15, 2016
By

In this post I will present a simple way how to export your regression results (or output) from R into Microsoft Word. Previously, I have written a tutorial how to create Table 1 with study characteristics and to export into Microsoft Word. These posts are especially useful for researchers who prepare their manuscript for publication Related Post

## First steps with Non-Linear Regression in R

February 25, 2016
By

Drawing a line through a cloud of point (ie doing a linear regression) is the most basic analysis one may do. It is sometime fitting well to the data, but in some (many) situations, the relationships between variables are not linear. In this case one may follow three different ways: (i) try to linearize the

## Multiple regression lines in ggpairs

February 16, 2016
By

Abstract Plots including multiple regression lines are added to a matrix of plots generated with the GGally package in R.1 Background Built upon ggplot2, GGally provides templates for combining plots into a matrix through the ggpairs function. Such...

## Linear regression with random error giving EXACT predefined parameter estimates

January 26, 2016
By
$Linear regression with random error giving EXACT predefined parameter estimates$

When simulating linear models based on some defined slope/intercept and added gaussian noise, the parameter estimates vary after least-squares fitting. Here is some code I developed that does a double transform of these models as to obtain a fitted model with EXACT defined parameter estimates a (intercept) and b (slope). It does so by: 1)

## Bayesian regression with STAN Part 2: Beyond normality

January 26, 2016
By

In a previous post we saw how to perform bayesian regression in R using STAN for normally distributed data. In this post we will look at how to fit non-normal model in STAN using three example distributions commonly found in empirical data: negative-binomial (overdispersed poisson data), gamma (right-skewed continuous data) and beta-binomial (overdispersed binomial data).

## How to create confounders with regression: a lesson from causal inference

January 25, 2016
By

By Ben Ogorek Introduction Regression is a tool that can be used to address causal questions in an observational study, though no one said it would be easy. While this article won't close the vexing gap between correlation and causation, it will offer specific advice when you're after a causal truth - keep an eye out for...

## Bayesian regression with STAN: Part 1 normal regression

January 8, 2016
By

This post will introduce you to bayesian regression in R, see the reference list at the end of the post for further information concerning this very broad topic. Bayesian regression Bayesian statistics turn around the Bayes theorem, which in a regression context is the following: \$\$ P(theta|Data) propto P(Data|theta) times P(theta) \$\$ Where (theta) is

## Regression with Splines: Should we care about Non-Significant Components?

January 4, 2016
By

Following the course of this morning, I got a very interesting question from a student of mine. The question was about having non-significant components in a splineregression.  Should we consider a model with a small number of knots and all components significant, or one with a (much) larger number of knots, and a lot of knots non-significant? My initial intuition was to...