Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up RCT adjustment section #277

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Clean up RCT adjustment section #277

merged 1 commit into from
Oct 16, 2024

Conversation

malcolmbarrett
Copy link
Collaborator

To match this section to the claims in the paper cited. I also modified the tables to figures.

These are mostly corrections instead of edits; I still plan to overhaul this chapter and decided to do some of the rewording and expansion of this section as part of that effort.

Copy link
Collaborator

@LucyMcGowan LucyMcGowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great thanks!

@@ -399,8 +399,9 @@ When you have no confounders and there is a linear relationship between the expo
Even in these cases, using the methods you will learn in this book can help.

1. Adjusting for baseline covariates can make an estimate *more efficient*
2. Propensity score weighting is *more efficient* than direct adjustment
2. Propensity score weighting is *as efficient* as direct adjustment
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! 🫣

@@ -523,7 +543,7 @@ d <- tibble(
weight = rnorm(n),
# generate the treatment from a binomial distribution
# with the probability of treatment dependent on the age and weight
treatment = rbinom(n, 1, 1 / (1 + exp(-0.01 * age - weight))),
treatment = rbinom(n, 1, plogis(-0.01 * age - weight)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this and have adopted it since seeing you do it last semester!

@malcolmbarrett malcolmbarrett merged commit 720e6b9 into main Oct 16, 2024
2 checks passed
@malcolmbarrett malcolmbarrett deleted the rct-covariates branch October 16, 2024 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants