课程: Complete Guide to R: Wrangling, Visualizing, and Modeling Data

今天就学习课程吧!

今天就开通帐号,24,600 门业界名师课程任您挑!

Comparing paired means: Paired samples t-test

Comparing paired means: Paired samples t-test

- [Instructor] When you're trying to produce an effect in the real world, you have an intervention of some kind. It might involve creating an ad campaign for a company. It might involve having a special curriculum for a class. It might involve having a patient go on a particular medical regimen. Any one of these is designed to produce a change from how things were at the beginning to how things were later on. A very common test in this situation is a paired samples t-test that looks at data for two paired samples, usually the same people, at time one and time two. Let me show you how to do this in R. I'm going to load some packages, including one called GGally because that gives me some extra plots that are done in a ggplot style fashion. Now what's a little unusual, is for this one, I'm not opening an existing dataset. I'm creating some artificial data. But let's do this, let's assume that we are going to have company sales on several different products, 30 different products, before…

内容