2200 search results for "regression"

More on Orthogonal Regression

December 27, 2016
By

Some time ago I wrote a post about orthogonal regression. This is where we fit a regression line so that we minimize the sum of the squares of the orthogonal (rather than vertical) distances from the data points to the regression line.Subsequently, I received the following email comment:"Thanks for this blog post. I enjoyed reading it. I'm wondering...

Read more »

Recursive Partitioning and Regression Trees Exercises

December 13, 2016
By
Recursive Partitioning and Regression Trees Exercises

Answers to the exercises are available here. Exercise 1 Consider the Kyphosis data frame(type help(‘kyphosis’) for more details), that contains: -Kyphosis:a factor with levels absent present indicating if a kyphosis (a

Read more »

Estimate Regression with (Type-I) Pareto Response

December 11, 2016
By
Estimate Regression with (Type-I) Pareto Response

The Type-I Pareto distribution has a probability function shown as below f(y; a, k) = k * (a ^ k) / (y ^ (k + 1)) In the formulation, the scale parameter 0 < a < y and the shape parameter k > 1 . The positive lower bound of Type-I Pareto distribution is particularly

Read more »

Forecast double seasonal time series with multiple linear regression in R

December 2, 2016
By
Forecast double seasonal time series with multiple linear regression in R

I will continue in describing forecast methods, which are suitable to seasonal (or multi-seasonal) time series. In the previous post smart meter data of electricity consumption were introduced and a forecast method using similar day approach was proposed. ARIMA and exponential smoothing (common methods of time series analysis) were used as forecast methods. The biggest disadvantage of this...

Read more »

RStanARM basics: visualizing uncertainty in linear regression

November 18, 2016
By
RStanARM basics: visualizing uncertainty in linear regression

As part of my tutorial talk on RStanARM, I presented some examples of how to visualize the uncertainty in Bayesian linear regression models. This post is an expanded demonstration of the approaches I presented in that tutorial. Data: Does brain mass predict how much mammals sleep in a day? Let’s use the mammal sleep dataset from ggplot2. This dataset contains the number of...

Read more »

LR02: SD line, GoA, Regression

LR02: SD line, GoA, Regression

This posts continues the discussion of correlation started on LR01: Correlation. We will try to answer the following questions: Should correlation be used for any pair of data? Does association mean causation? What are ecological correlations? What hap...

Read more »

glmnetUtils: quality of life enhancements for elastic net regression with glmnet

November 1, 2016
By

The glmnetUtils package provides a collection of tools to streamline the process of fitting elastic net models with glmnet. I wrote the package after a couple of projects where I found myself writing the same boilerplate code to convert a data frame into a predictor matrix and a response vector. In addition to providing a formula interface, it also...

Read more »

The Bayesian approach to ridge regression

The Bayesian approach to ridge regression

In a previous post, we demonstrated that ridge regression (a form of regularized linear regression that attempts to shrink the beta coefficients toward zero) can be super-effective at combating overfitting and lead to a greatly more generalizable model. This approach… Continue reading →

Read more »

Cut your regression to mediocrity with this 1 WEIRD TRICK!

October 27, 2016
By
Cut your regression to mediocrity with this 1 WEIRD TRICK!

Well, like all clickbait articles, this isn’t going to be nearly as helpful to you as you were hoping — at least, not if you’re looking for some way to stop living an average life and fulfill your potential and blah blah blah. But, if you’re concerned about regression to the mean (aka “regression to… Continue reading...

Read more »

A Shiny App for Passing Bablok and Deming Regression

A Shiny App for Passing Bablok and Deming Regression

Background Back in 2011 I was not aware of any tool in R for Passing Bablok (PB) regression, a form of robust regression described in a series of three papers in Clinical Chemistry and Laboratory Medicine (then J Clin Chem and Biochem) available here, here and here. For reasons that are not entirely clear to … Continue...

Read more »

Sponsors

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)