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

stremr output #39

Closed
marycombs opened this issue Apr 17, 2018 · 1 comment
Closed

stremr output #39

marycombs opened this issue Apr 17, 2018 · 1 comment

Comments

@marycombs
Copy link

Can you help me understand the output of stremr? In the optimal dynamic treatment rule example, in the output table IPW_estimates, there are the variables: sum_Y_IPAW, sum_all_IPAW, ht, St.IPTW, ht.KM. Can you help me understand how to interpret each of these variables?

@osofr
Copy link
Collaborator

osofr commented Apr 17, 2018

Please let me know which specific functions you are running.

As far as the variables above are involved, it appears that these are the output of survNPMSM

Here are the relevant variables defined in the source code:

https://github.com/osofr/stremr/blob/e6cd51cea0531883cd195ed61f6f72b93b45528b/R/main_estimation.R#L842
Sum of the weighted outcomes (Y multiplied by propensity score cumulative weight), by time-point

https://github.com/osofr/stremr/blob/e6cd51cea0531883cd195ed61f6f72b93b45528b/R/main_estimation.R#L846
Sum of the cumulative propensity scores, by time-point.

The rest of the definitions of the variables can be found similarly, by browsing the function. Briefly, ht is the IPW-hazard, by time-point, St.IPTW is the IPW estimator obtained from that hazard, ht.KM is the Kaplan-Meier hazard.

@osofr osofr closed this as completed Apr 17, 2018
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

No branches or pull requests

2 participants