Skip to content

Commit 1cf49e0

Browse files
committed
fix a typo.
1 parent bfaf0b1 commit 1cf49e0

15 files changed

Lines changed: 7 additions & 57 deletions

File tree

docs/_images/example_w_1_erf.png

-59.8 KB
Binary file not shown.

docs/_sources/research_gallery/causalgps_example_1.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ is attributed to the distance measures of the exposure versus the GPS.
6565

6666
After 6 iterations, a covariate balance is achieved one can run summary to see the summary of the results.
6767

68-
```{r, eval=FALSE}
68+
```r
6969
summary(ps_pop_obj_1)
7070
```
7171

@@ -142,15 +142,3 @@ erf <- estimate_npmetric_erf(m_Y = ps_pop_obj_1$pseudo_pop$Y,
142142
w_vals = seq(7,13, 0.05),
143143
nthread = 12)
144144
```
145-
146-
The `erf` object contains the estimated exposure-response function. The following plot shows the exposure function.
147-
148-
```r
149-
plot(erf)
150-
```
151-
152-
```{figure} figures/png/example_w_1_erf.png
153-
---
154-
height: 400 px
155-
name: Exposure Response Function
156-
```

docs/objects.inv

-26 Bytes
Binary file not shown.

docs/research_gallery/causalgps_example_1.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ <h2>Matching with parametric GPS model<a class="headerlink" href="#matching-with
364364
<p>In the previous code, we trimmed data using <code class="docutils literal notranslate"><span class="pre">trim_quantiles</span></code>. This helps to focus on common support range. <code class="docutils literal notranslate"><span class="pre">m_</span></code> in <code class="docutils literal notranslate"><span class="pre">m_xgboost</span></code> stands for modified xgboost library. So we can pass a range of hyperparameter with <code class="docutils literal notranslate"><span class="pre">xgb_</span></code> prefix. Covariate balance has 3 options including method (which only <code class="docutils literal notranslate"><span class="pre">absolute</span></code> has been implemented so far), threshold (<code class="docutils literal notranslate"><span class="pre">covar_bl_trs</span></code>) and threshold type (<code class="docutils literal notranslate"><span class="pre">covar_bl_trs_type</span></code>) which includes <code class="docutils literal notranslate"><span class="pre">mean</span></code>, <code class="docutils literal notranslate"><span class="pre">median</span></code>, and <code class="docutils literal notranslate"><span class="pre">maximal</span></code>. <code class="docutils literal notranslate"><span class="pre">max_attempt</span></code> is the maximum number of attempts to generate pseudo population. <code class="docutils literal notranslate"><span class="pre">matching_fun</span></code> is the matching function (only <code class="docutils literal notranslate"><span class="pre">matching_l1</span></code> has been implemented so far). <code class="docutils literal notranslate"><span class="pre">delta_n</span></code> is the size of caliper and <code class="docutils literal notranslate"><span class="pre">scale</span></code> is a specified scale parameter to control the relative weight that
365365
is attributed to the distance measures of the exposure versus the GPS.</p>
366366
<p>After 6 iterations, a covariate balance is achieved one can run summary to see the summary of the results.</p>
367-
<div class="highlight-{r, notranslate"><div class="highlight"><pre><span></span>summary(ps_pop_obj_1)
367+
<div class="highlight-r notranslate"><div class="highlight"><pre><span></span><span class="nf">summary</span><span class="p">(</span><span class="n">ps_pop_obj_1</span><span class="p">)</span>
368368
</pre></div>
369369
</div>
370370
<div class="highlight-s notranslate"><div class="highlight"><pre><span></span><span class="o">---</span> <span class="n">CausalGPS</span> <span class="n">pseudo</span> <span class="n">population</span> <span class="n">object</span> <span class="n">summary</span> <span class="o">---</span>
@@ -433,13 +433,6 @@ <h2>Matching with parametric GPS model<a class="headerlink" href="#matching-with
433433
<span class="n">nthread</span> <span class="o">=</span> <span class="m">12</span><span class="p">)</span>
434434
</pre></div>
435435
</div>
436-
<p>The <code class="docutils literal notranslate"><span class="pre">erf</span></code> object contains the estimated exposure-response function. The following plot shows the exposure function.</p>
437-
<div class="highlight-r notranslate"><div class="highlight"><pre><span></span><span class="nf">plot</span><span class="p">(</span><span class="n">erf</span><span class="p">)</span>
438-
</pre></div>
439-
</div>
440-
<div class="figure align-default" id="exposure-response-function">
441-
<a class="reference internal image-reference" href="../_images/example_w_1_erf.png"><img alt="../_images/example_w_1_erf.png" src="../_images/example_w_1_erf.png" style="height: 400px;" /></a>
442-
</div>
443436
</div>
444437
</div>
445438

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-159 Bytes
Binary file not shown.
Binary file not shown.
-59.8 KB
Binary file not shown.

nsaph-software/_build/html/_sources/research_gallery/causalgps_example_1.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ is attributed to the distance measures of the exposure versus the GPS.
6565

6666
After 6 iterations, a covariate balance is achieved one can run summary to see the summary of the results.
6767

68-
```{r, eval=FALSE}
68+
```r
6969
summary(ps_pop_obj_1)
7070
```
7171

@@ -142,15 +142,3 @@ erf <- estimate_npmetric_erf(m_Y = ps_pop_obj_1$pseudo_pop$Y,
142142
w_vals = seq(7,13, 0.05),
143143
nthread = 12)
144144
```
145-
146-
The `erf` object contains the estimated exposure-response function. The following plot shows the exposure function.
147-
148-
```r
149-
plot(erf)
150-
```
151-
152-
```{figure} figures/png/example_w_1_erf.png
153-
---
154-
height: 400 px
155-
name: Exposure Response Function
156-
```
-26 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)