Class 9 - Evaluating Uncertainty

Class 9 - Evaluating Uncertainty

by Caroline -
Number of replies: 1

Specify a hypothesis regarding a particular exposure and outcome and a binary effect modifier including specific measures of association (specify the magnitudes of that association you anticipate: I suggest making everything cross- sectional). Using the software of your choice, generate a population with 1000 people under a causal structure consistent with this hypothesis. Draw a simple random sample 100 individuals from this population and estimate the population average exposure-outcome association and the association stratified by your modifier of interest within this subset. Repeat this 10 times and write the parameter estimates and CI each time.

Note: This week's response is optional.

In reply to Caroline

Re: Class 9 - Evaluating Uncertainty

by Sarah Ackley -

 

Results below, code attached.

 

True Odds Ratio without Effect Modifier =  2.25
True Odds Ratio with Effect Modifier =  0.444444444444444


NO EFFECT MODIFIER
Sample ORs
1.09 3.8 1.33 1.44 1.43 1.57 0.64 2.35 2.52 2.22
Mean of Sample ORs
1.84
95% CIs
   Lower Confidence Limit Upper Conifidence Limit
1                    0.18                    7.93
2                    0.54                   44.41
3                    0.06                   82.93
4                    0.32                    7.73
5                    0.24                   10.43
6                    0.16                   20.98
7                    0.05                    6.19
8                    0.34                   27.17
9                    0.39                   28.60
10                   0.48                   12.25


WITH EFFECT MODIFIER
Sample ORs
0.39 0.15 0.72 1.09 0.48 0.52 0.54 0.76 1.03 1.09
Mean of Sample ORs
0.68
95% CIs
   Lower Confidence Limit Upper Conifidence Limit
1                    0.01                    5.26
2                    0.00                    1.40
3                    0.10                    4.27
4                    0.13                    9.09
5                    0.04                    4.58
6                    0.07                    3.00
7                    0.04                    5.20
8                    0.13                    4.16
9                    0.15                    7.81
10                   0.19                    7.85


ADDITIONAL SUMMARIES
Number of times that the OR for those without EM is greater than the or for those with EM: 10
Number of times that the OR for those without EM is greater than 1: 9
Number of times that the OR for those with EM is less than 1: 7