Skip to content

Commit

Permalink
Update model.do
Browse files Browse the repository at this point in the history
only run do-files that are not commented out for two KM plots
  • Loading branch information
angelwong121 committed Oct 13, 2020
1 parent 54b7e24 commit 862ad36
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions analysis/model.do
Original file line number Diff line number Diff line change
Expand Up @@ -64,53 +64,53 @@ do "02a_cr_create_nsaid_population.do"

/* Checks */

do "03_an_checks.do"
*do "03_an_checks.do"

/* Run analysis */

* Any NSAIDs specific analyses
do "04_an_descriptive_table.do"
do "05_an_descriptive_plots.do"
do "06a_an_models_nsaid.do"
do "07_an_models_interact.do"
do "08_an_model_checks.do"
do "09_an_model_explore.do"
*do "04_an_descriptive_table.do"
*do "05_an_descriptive_plots.do"
*do "06a_an_models_nsaid.do"
*do "07_an_models_interact.do"
*do "08_an_model_checks.do"
*do "09_an_model_explore.do"

/* SENSITIVITY ANALYSIS 1: =============================================
Restrict people with known ethnicity ======================================================================*/
do "10_an_models_ethnicity.do"
*do "10_an_models_ethnicity.do"

/* SENSITIVITY ANALYSIS 2: =============================================
GP count and A&E attandence as additional covariates ======================================================================*/
do "11_an_models_GPcount_A&E.do"
*do "11_an_models_GPcount_A&E.do"

* Plot survival curves
do "12_an_models_adj_survival_curve.do"
*do "12_an_models_adj_survival_curve.do"

* Naproxen dose specific analyses
do "Naproxen_04_an_descriptive_table.do"
do "Naproxen_05_an_descriptive_plots.do"
do "Naproxen_06_an_models.do"
do "Naproxen_08_an_model_checks.do"
do "Naproxen_09_an_model_explore.do"
*do "Naproxen_06_an_models.do"
*do "Naproxen_08_an_model_checks.do"
*do "Naproxen_09_an_model_explore.do"

* Cox-2 NSAIDs specific analyses
do "Cox2_04_an_descriptive_table.do"
do "Cox2_05_an_descriptive_plots.do"
do "Cox2_06_an_models.do"
do "Cox2_08_an_model_checks.do"
do "Cox2_09_an_model_explore.do"
*do "Cox2_06_an_models.do"
*do "Cox2_08_an_model_checks.do"
*do "Cox2_09_an_model_explore.do"

* Ibuprofen specific analyses
do "Ibuprofen_04_an_descriptive_table.do"
do "Ibuprofen_05_an_descriptive_plots.do"
do "Ibuprofen_06_an_models.do"
do "Ibuprofen_08_an_model_checks.do"
do "Ibuprofen_09_an_model_explore.do"
*do "Ibuprofen_04_an_descriptive_table.do"
*do "Ibuprofen_05_an_descriptive_plots.do"
*do "Ibuprofen_06_an_models.do"
*do "Ibuprofen_08_an_model_checks.do"
*do "Ibuprofen_09_an_model_explore.do"

/* post-hoc analysis 1: =============================================
use DAG model for covariate adjustment
======================================================================*/
======================================================================
global outdir "nsaid_output_DAG"
global logdir "nsaid_log_DAG"
global varlist i.obese4cat ///
Expand Down Expand Up @@ -146,7 +146,7 @@ cd "`c(pwd)'/analysis"
do "flow_chart_a_nsaids.do"
/* SENSITIVITY ANALYSIS 3: =============================================
Varying exposure definition to within 2 months prior to cohort entry ======================================================================*/
Varying exposure definition to within 2 months prior to cohort entry ======================================================================
clear
Expand Down Expand Up @@ -542,7 +542,7 @@ do "02a_cr_create_nsaid_population.do"
do "06a_an_models_nsaid.do"
do "08_an_model_checks.do"

*/
/***************************************************************************
***************************************************************************
Cohort 2: Osteoarthritis/rheumatoid arthritis
Expand Down Expand Up @@ -608,53 +608,53 @@ do "02b_cr_create_arthritis_population.do"
/* Checks */
do "03_an_checks.do"
*do "03_an_checks.do"
/* Run analysis */
* Any NSAIDs specific analyses
do "04_an_descriptive_table.do"
do "05_an_descriptive_plots.do"
do "06b_an_models_arthritis.do"
do "07_an_models_interact.do"
do "08_an_model_checks.do"
do "09_an_model_explore.do"
*do "04_an_descriptive_table.do"
*do "05_an_descriptive_plots.do"
*do "06b_an_models_arthritis.do"
*do "07_an_models_interact.do"
*do "08_an_model_checks.do"
*do "09_an_model_explore.do"
/* SENSITIVITY ANALYSIS 1: =============================================
Restrict people with known ethnicity ======================================================================*/
do "10_an_models_ethnicity.do"
*do "10_an_models_ethnicity.do"
/* SENSITIVITY ANALYSIS 2: =============================================
GP count and A&E attandence as additional covariates ======================================================================*/
do "11_an_models_GPcount_A&E.do"
*do "11_an_models_GPcount_A&E.do"
* Plot survival curves
do "12_an_models_adj_survival_curve.do"
*do "12_an_models_adj_survival_curve.do"
* Naproxen dose specific analyses
do "Naproxen_04_an_descriptive_table.do"
do "Naproxen_05_an_descriptive_plots.do"
do "Naproxen_06_an_models.do"
do "Naproxen_08_an_model_checks.do"
do "Naproxen_09_an_model_explore.do"
*do "Naproxen_06_an_models.do"
*do "Naproxen_08_an_model_checks.do"
*do "Naproxen_09_an_model_explore.do"
* Cox-2 NSAIDs specific analyses
do "Cox2_04_an_descriptive_table.do"
do "Cox2_05_an_descriptive_plots.do"
do "Cox2_06_an_models.do"
do "Cox2_08_an_model_checks.do"
do "Cox2_09_an_model_explore.do"
*do "Cox2_06_an_models.do"
*do "Cox2_08_an_model_checks.do"
*do "Cox2_09_an_model_explore.do"
* Ibuprofen specific analyses
do "Ibuprofen_04_an_descriptive_table.do"
do "Ibuprofen_05_an_descriptive_plots.do"
do "Ibuprofen_06_an_models.do"
do "Ibuprofen_08_an_model_checks.do"
do "Ibuprofen_09_an_model_explore.do"
*do "Ibuprofen_04_an_descriptive_table.do"
*do "Ibuprofen_05_an_descriptive_plots.do"
*do "Ibuprofen_06_an_models.do"
*do "Ibuprofen_08_an_model_checks.do"
*do "Ibuprofen_09_an_model_explore.do"
/* post-hoc analysis 1: =============================================
use DAG model for covariate adjustment
======================================================================*/
======================================================================
global outdir "arthritis_output_DAG"
global logdir "arthritis_log_DAG"
global varlist i.obese4cat ///
Expand Down

0 comments on commit 862ad36

Please sign in to comment.