# SAS Code

## Description
This project contains SAS scripts for analyzing data from two groups (g=2) with the following parameters: Group size for bilateral and unilateral m=n=20; true event proportion pi_0=0.5; Correlation rho=0.4.

The data follows the methodology described in: 
Ma CX, Wang K. Testing the homogeneity of proportions for combined unilateral and bilateral data. J Biopharm Stat. 2021 Sep 3;31(5):686-704. doi: 10.1080/10543406.2021.1946693. Epub 2021 Jul 5. PMID: 34224322.

## Files
1. `sim02_20_20_0.5_0.4.sas`: Prepares the dataset for analysis.
2. `analysis.sas`: Performs statistical analysis.

## How to Run
1. Open the `sim02_20_20_0.5_0.4.sas` script, and save the script to your desired directory and execute it. This script prepares the dataset for analysis.
2. Open the `analysis.sas` script in SAS, update the dataset's path to point to the output from Step 1, and execute the script to run the analysis. This script performs the analysis and generates the Type I error rate.

