Blog Posts

Previous Posts

A few years back the winning t-shirt design in a contest for the American Association of Public Opinion Research read "Weighting is the Hardest Part." And I don't think the t-shirt was referring to anything about patience! Most statistical methods assume that every individual in the sample has the same chance of selection. Complex Sample Surveys are different. They use multistage sampling designs that include stratification and cluster sampling. As a result, the assumption that every selected unit has the same chance of selection is not true. To get statistical estimates that accurately reflect the population, cases in these samples need to be weighted. If not, all statistical estimates and their standard errors will be biased. But selection probabilities are only part of weighting.

The Advantages of RStudio

There are multiple ways to interface with R. Some common interfaces are the basic R GUI, R Commander (the package “Rcmdr” that you use on top of the basic R GUI), and RStudio. When I first started to learn to use R, I was bound and determined to use the basic R GUI. As someone who was already used to programming in SAS, I wasn’t looking for a point-and-click interface like R Commander. These kinds of interfaces are notoriously limiting when it comes to advanced analyses and software capabilities. (Though if I’m being honest, probably 95% or more of my daily tasks could be handled using R Commander). Without knowing much about it, I also didn’t want to use RStudio. It seemed overly-complicated to download an additional software package for something that already functioned on its own. One day though, when working with someone who wanted to use RStudio, I decided to download it and give it a chance. I never went back to using the basic R GUI.

If you are like I was for a long time, you have avoided learning R. You’ve probably heard that there’s a steep learning curve, and that the available documentation is not necessarily user-friendly. Frankly, both things are true, to some extent. The best and worst thing about R is that it is open-source and there is no single company that is responsible for R or your ability to use it. While there is a developer community that maintains a set of standards and regulated documentation, anyone can add new functionality to R through user-created “packages.” This gives R users a large, flexible range of options (once you know how to install the packages, of course!), which can be a major advantage. On the other hand, these packages are as diverse as the users who create them, and they may emphasize different model features, output displays, and even basic methodological principles. Underlying all of this, though, is what I feel is the truly intimidating part of R:

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

Quantiles (the median, 25th percentile, etc.) are valuable statistical descriptors, but their usefulness doesn’t stop there. In regression analysis, quantiles can also help answer a broader set of research questions than standard linear regression. In standard linear regression, the focus is on predicting the mean of a response (or dependent) variable, given a set of predictor variables. For example, standard linear regression can help us understand how age predicts the mean income of a study population. Contrast this with quantile regression, which allows us to go beyond the mean of the response variable. Now we can understand how predictor variables predict the entire distribution of the response variable, or one or more relevant features (e.g., center, spread, shape) of this distribution.

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

In this video I will answer a question from a recent webinar Random Intercept and Random Slope Models. We are answering questions here because we had over 500 people live on the webinar so we didn't have time to get through all the questions.

<< Older Entries   Newer Entries >>

stat skill-building compass

Find clarity on your statistics journey. Try the new tool Stat Skill-Building Compass: Find Your Starting Point!