Dear tech team,
I am Hatem Ali
Single-user Stata perpetual license:
Serial number: 301506305680
I am seeking advice for analysis to do on stata 15.
I have registry data and is trying to assess effect of certain drug (induction) on graft survival in renal transplant.
The group that received the drug n=3600, group that didnt receive the drug n=1000
Both groups are not mathed in many variables (example:age, gender, dmm,amm,bmm...)
I have done the following commands
stset gsurv, failure(gcens)
.stteffects ipw (induction cit_hrs dage rage amm bmm drmm ethnicity donor rgender graftfunction) (cit_hrs dage rage amm bmm drmm> ethnicity donor rgender graftfunction)
I am trying to do Kaplan meier curves, however I cannot find this feature on treatment effects for survival outcomes
I would appreciate if you can help me and advise how I can do these survival curves after doing stteffects
I have tried to do that manually , however I am not sure if what I have done is correct syntaxes or not.
What I have done is the following:
. psmatch2 (gcens) (induction cit_hrs dage rage amm bmm drmm ethnicity donor rgender graftfunction)
. stset gsurv[pweight=_weight],failure(gcens==1)
. stteffects ipw (induction dage rage cit_hrs amm bmm drmm donor rgender ethnicity) (cit_hrs dage rage amm bmm drmm donor rgende> r ethnicity)
. sts graph, by(induction)
. sts test induction, cox
Is that correct and is right for doing survival analysis for matched groups and do Kaplan meier graph?
Looking forward to hearback from you
I am Hatem Ali
Single-user Stata perpetual license:
Serial number: 301506305680
I am seeking advice for analysis to do on stata 15.
I have registry data and is trying to assess effect of certain drug (induction) on graft survival in renal transplant.
The group that received the drug n=3600, group that didnt receive the drug n=1000
Both groups are not mathed in many variables (example:age, gender, dmm,amm,bmm...)
I have done the following commands
stset gsurv, failure(gcens)
.stteffects ipw (induction cit_hrs dage rage amm bmm drmm ethnicity donor rgender graftfunction) (cit_hrs dage rage amm bmm drmm> ethnicity donor rgender graftfunction)
I am trying to do Kaplan meier curves, however I cannot find this feature on treatment effects for survival outcomes
I would appreciate if you can help me and advise how I can do these survival curves after doing stteffects
I have tried to do that manually , however I am not sure if what I have done is correct syntaxes or not.
What I have done is the following:
. psmatch2 (gcens) (induction cit_hrs dage rage amm bmm drmm ethnicity donor rgender graftfunction)
. stset gsurv[pweight=_weight],failure(gcens==1)
. stteffects ipw (induction dage rage cit_hrs amm bmm drmm donor rgender ethnicity) (cit_hrs dage rage amm bmm drmm donor rgende> r ethnicity)
. sts graph, by(induction)
. sts test induction, cox
Is that correct and is right for doing survival analysis for matched groups and do Kaplan meier graph?
Looking forward to hearback from you