Learn about conducting a the categorical bivariate chi-squared test in R, which will be demonstrated and added to a presentation table.
- [Instructor] Welcome to Chapter 6, Section 4.…We are now ready to add Categorical Bivariate Tests…to our Categorical Table 1.…In this section, I'm first going…to load up the MASS package,…which does some great things for us.…It makes it so you can do a Chi-square…and Fisher's exact test,…which are Categorical Descriptive Analyses.…Then again, I'm going to call up the gtools package…and make a macro to automate doing all the test we need…in Categorical Table 1.…
We'll update our Table 1 and take a look at what we find.…First, let's start with the Categorical Table.…We don't have any variables for the first line,…so we will just say NA there.…But next, we have Alcohol status.…You'll see I merged these cells together.…We will only have one p-value for this.…Now let's go to R and get that p-value.…Alright, we are working with our analytic file…so we will skip this read code.…And surprise, a new package.…
The package is MASS, all caps.…Case matters a lot in R.…We already installed that package…and now we'll put a library call on MASS.…
This detailed, practical course is designed to help those in the field of public health, medicine, and data science to edit, analyze, and interpret data. Learn how to code new variables, use the forward-stepwise modeling process, and document your decisions. Find out how to visualize results by generating charts and graphics, and how to add tables and figures to your documentation. This course helps equip you to independently design, develop, and execute a full BRFSS analysis, and even publish your results in scientific publications or journals.
- Reviewing survey data and documentation
- Conducting a BRFSS analysis
- Understanding naming conventions
- Editing variables
- Reviewing distributions
- Generating an analytic dataset
- Developing descriptive statistics to answer prespecified hypotheses
- Preparing publication-worthy tables and plots
Skill Level Advanced
1. What Is the BRFSS?
2. Designing Your Metadata
3. Reading in Data and Applying Exclusions
4. Preparing for Descriptive Analysis
5. Conducting Descriptive Analysis
Making a frequency macro4m 8s
6. Descriptive Analysis: Weights and Tests
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.