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

Functionality for true continuous treatment #35

Open
blind-contours opened this issue Dec 2, 2022 · 1 comment
Open

Functionality for true continuous treatment #35

blind-contours opened this issue Dec 2, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@blind-contours
Copy link

Hey Nima,

Is there work underway to make this package work for continuous treatment? I've tested it under simple continuous A situations and get errors related to eif_component_names for onestep estimation and estimator_args[["max_iter"]] error for tmle.

@nhejazi nhejazi self-assigned this Dec 2, 2022
@nhejazi nhejazi added the question Further information is requested label Dec 2, 2022
@nhejazi
Copy link
Owner

nhejazi commented Dec 7, 2022

thanks for trying out the package for this, David, and sorry you ran into some trouble with it. apparently, I made a poor design decision, since the wrapper function (medshift()) should have immediately stopped you from trying this with a non-binary treatment variable. currently, the package support Kennedy's incremental propensity score intervention (which is described for mediation in Diaz + H 2020), which applies to binary variables, but does not implement the modified treatment policy (MTP) shift intervention A + delta. this has to do with the resultant estimators being challenging to implement in that setting, as (if I recall rightly) they require evaluating expectations wrt a post-intervention mediator density e(Z + delta | A, W), which cannot be reparameterized in a convenient way, unlike the non-mediational case. I'll try to implement a check to restrict to binary A sometime soon and leave this open in case others run into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants