Skip to content

Commit 24170fe

Browse files
committed
typos in README
1 parent ab59eeb commit 24170fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ library(tipr)
3636

3737
After fitting your model, you can determine the unmeasured confounder needed to tip your analysis. This unmeasured confounder is determined by two quantities, the relationship between the exposure and the unmeasured confounder (if the unmeasured confounder is continuous, this is indicated with `exposure_confounder_effect`, if binary, with `exposed_confounder_prev` and `unexposed_confounder_prev`), and the relationship between the unmeasured confounder and outcome `confounder_outcome_effect`. Using this `r emo::ji("package")`, we can fix one of these and solve for the other. Alternatively, we can fix both and solve for `n`, that is, how many unmeasured confounders of this magnitude would tip the analysis.
3838

39-
This package comes with a few example data sets. For this example, we will use `exdata_rr`. This data set was simulated such that there are two confounders, one that was "measured" (and thus useable in the main analysis, this is called `measured_confounder`) and one that is "unmeasured" (we have access to it because this is simulated data, but ordinarily we would not, this variable is called `.unmeasured_confounder`).
39+
This package comes with a few example data sets. For this example, we will use `exdata_rr`. This data set was simulated such that there are two confounders, one that was "measured" (and thus usable in the main analysis, this is called `measured_confounder`) and one that is "unmeasured" (we have access to it because this is simulated data, but ordinarily we would not, this variable is called `.unmeasured_confounder`).
4040

4141
Using the example data `exdata_rr`, we can estimate the exposure-outcome relationship using the measured confounder as follows:
4242

@@ -54,7 +54,7 @@ We see the above example, the exposure-outcome relationship is 1.5 (95% CI: 1.09
5454

5555
We are interested in a continuous unmeasured confounder, so we will use the `tip_with_continuous()` function.
5656

57-
Let's assume the unmeaured confounder is normally distributed with a mean of 0.5 in the exposed group and 0 in the unexposed (and unit variance in both), resulting in a mean difference of 0.5 (`exposure_confounder_effect = 0.5`), let's solve for the relationship between the unmeasured confounder and outcome needed to tip the analysis (in this case, we are solving for `confounder_outcome_effect`).
57+
Let's assume the unmeasured confounder is normally distributed with a mean of 0.5 in the exposed group and 0 in the unexposed (and unit variance in both), resulting in a mean difference of 0.5 (`exposure_confounder_effect = 0.5`), let's solve for the relationship between the unmeasured confounder and outcome needed to tip the analysis (in this case, we are solving for `confounder_outcome_effect`).
5858

5959
```{r}
6060
tip(effect_observed = 1.5, exposure_confounder_effect = 0.5)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ analysis.
4747

4848
This package comes with a few example data sets. For this example, we
4949
will use `exdata_rr`. This data set was simulated such that there are
50-
two confounders, one that was “measured” (and thus useable in the main
50+
two confounders, one that was “measured” (and thus usable in the main
5151
analysis, this is called `measured_confounder`) and one that is
5252
“unmeasured” (we have access to it because this is simulated data, but
5353
ordinarily we would not, this variable is called
@@ -79,7 +79,7 @@ CI: 1.09, 2.08).
7979
We are interested in a continuous unmeasured confounder, so we will use
8080
the `tip_with_continuous()` function.
8181

82-
Let’s assume the unmeaured confounder is normally distributed with a
82+
Let’s assume the unmeasured confounder is normally distributed with a
8383
mean of 0.5 in the exposed group and 0 in the unexposed (and unit
8484
variance in both), resulting in a mean difference of 0.5
8585
(`exposure_confounder_effect = 0.5`), let’s solve for the relationship

0 commit comments

Comments
 (0)