Skip to content

Commit

Permalink
Merge pull request #348 from PSIAIMS/AB_test
Browse files Browse the repository at this point in the history
Corrected matched section
  • Loading branch information
DrLynTaylor authored Oct 23, 2024
2 parents 8635885 + 93b8997 commit 074b227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ci_for_prop.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ proportion_ci_clopper_pearson(act2,conf.level=0.95) %>%
```

### Normal Approximation Method (Also known as the Wald or asymptotic CI Method)
### Normal Approximation Method (Also known as the Wald or asymptotic CI Method)

In large random samples from independent trials, the sampling distribution of proportions approximately follows the normal distribution. The expectation of a sample proportion is the corresponding population proportion. Therefore, based on a sample of size $n$, a $(1-\alpha)\%$ confidence interval for population proportion can be calculated using normal approximation as follows:

Expand Down Expand Up @@ -174,7 +174,7 @@ proportion_ci_jeffreys(act2,conf.level=0.95) %>%

When you have 2 measurements on the same subject, the 2 sets of measures are not independent and you have matched pair of responses.

It is not usual to calculate the proportions separately for these responses, and then take a difference, instead other statistical methods such as odds ratios, risk ratios and confidence intervals for those statistics are used.
This section is work in progress. For more information about methods for calculating confidence intervals for a matched pair proportion see [here](https://psiaims.github.io/CAMIS/SAS/ci_for_prop.html#methods-for-calculating-confidence-intervals-for-a-matched-pair-proportion)

## Methods for Calculating Confidence Intervals for 2 independent samples proportion using {cardx}

Expand Down

0 comments on commit 074b227

Please sign in to comment.