This repository contains a comprehensive guide for analyzing Youth Risk Behavior Survey (YRBS) data using R's survey
package. The guide is designed to help researchers, especially those transitioning from SAS to R, understand how to properly handle complex survey data and perform weighted analyses.
- How to set up your R environment for YRBS analysis
- Proper techniques for loading and preparing YRBS data
- Creating survey design objects that account for complex sampling
- Generating weighted frequency tables and cross-tabulations
- Running logistic regression analyses with survey weights
- Best practices for data management and analysis
- Step-by-step instructions for all analysis stages
- Clear explanations of why each step matters
- Examples of both statistical modeling and human-readable output
- Troubleshooting tips for common issues
- Comparison to SAS procedures for SAS users
Before using this guide, you should have:
- Basic familiarity with R
- YRBS dataset in CSV format
- R installed on your computer
The guide emphasizes:
- Proper survey design implementation
- Data management techniques
- Documentation standards
- Result interpretation guidelines
For more information, see:
This guide is maintained as an educational resource. Suggestions for improvements are welcome.