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

Use gDelta.1 for sampling weights #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kecolson
Copy link

Adjust handling of gDelta.1, so that the user can use this term to specify and apply sampling or matching weights, as was done for tmle for ATE here:
Rudolf KE, Diaz I, Rosenblum M, Stuart EA (2014) Estimating population treatment effects from a survey subsample. Am J Epidemiology, doi: 10.1093/aje/kwu197.
http://aje.oxfordjournals.org/content/early/2014/09/04/aje.kwu197

Adjust handling of gDelta.1, so that the user can use this term to specify and apply sampling or matching weights, as was done for tmle for ATE here:
Rudolf KE, Diaz I, Rosenblum M, Stuart EA (2014) Estimating population treatment effects from a survey subsample. Am J Epidemiology, doi: 10.1093/aje/kwu197. 
http://aje.oxfordjournals.org/content/early/2014/09/04/aje.kwu197
@@ -181,7 +181,12 @@ tmle.cte <- function(A, B, Y, a=0, Delta=NULL, Q.method="glm", Q.formula=NULL, Q
}
gDelta.1 <- .bound(gDelta.1, c(1, min(gbound)))
} else {
gDelta.1 <- rep(1, length(Y))
if (method=="user" && !is.null(gDelta.1) && sum(!is.na(gDelta.1))>0) {
Copy link
Owner

Choose a reason for hiding this comment

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

Here method should be gDelta.method I think

@kecolson
Copy link
Author

Good catch- your'e right. I think I've corrected it now.

@lendle
Copy link
Owner

lendle commented Apr 21, 2015

Can you also add a note about this to the documentation in the roxygen comment? The gDelta.1 argument is probably the best place, or maybe the details section, which doesn't currently exist.

In roxygen documentation for package, added additional information on use of user-specified gDelta.1 for applying matching or sampling weights.
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