-
Notifications
You must be signed in to change notification settings - Fork 5
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
GPS formula #239
GPS formula #239
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop_5 #239 +/- ##
============================================
Coverage ? 68.35%
============================================
Files ? 33
Lines ? 1144
Branches ? 0
============================================
Hits ? 782
Misses ? 362
Partials ? 0 ☔ View full report in Codecov by Sentry. |
type_flag <- "data.frame" | ||
} else if (is.object(data_obj) && !isS4(data_obj)){ | ||
data <- data_obj$.data | ||
type_flag <- "s3_obj" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warnings: were not covered by tests
|
||
plot(pseudo_pop_weighting, include_details = TRUE) | ||
|
||
pseudo_pop_matching <- generate_pseudo_pop(.data = m_d, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend trimming before matching, improving the balance results significantly. Change L60-67 to the following
trimmed_data <- trim_it(data_obj = m_d,
trim_quantiles = c(0.05, 0.95),
variable = "w")
pseudo_pop_matching <- generate_pseudo_pop(.data = trimmed_data,
cw_obj = cw_object_matching,
covariate_col_names = c("cf1", "cf2", "cf3",
"cf4", "cf5", "cf6"),
covar_bl_trs = 0.1,
covar_bl_trs_type = "maximal",
covar_bl_method = "absolute")
No description provided.