Skip to content

Commit 1a8ed8e

Browse files
committed
re-render vingettes
1 parent fa00ee2 commit 1a8ed8e

File tree

6 files changed

+124
-124
lines changed

6 files changed

+124
-124
lines changed

inst/doc/vtreat.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ <h2>A Categorical Outcome Example</h2>
137137
## 3 c 30
138138
## 4 &lt;NA&gt; NA</code></pre>
139139
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">treatmentsC &lt;-<span class="st"> </span><span class="kw">designTreatmentsC</span>(dTrainC,<span class="kw">colnames</span>(dTrainC),<span class="st">'y'</span>,<span class="ot">TRUE</span>)</code></pre></div>
140-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:14 2017&quot;
141-
## [1] &quot;designing treatments Thu Apr 13 17:31:14 2017&quot;
142-
## [1] &quot; have level statistics Thu Apr 13 17:31:14 2017&quot;
143-
## [1] &quot;design var x Thu Apr 13 17:31:14 2017&quot;
144-
## [1] &quot;design var z Thu Apr 13 17:31:15 2017&quot;
145-
## [1] &quot; scoring treatments Thu Apr 13 17:31:15 2017&quot;
146-
## [1] &quot;have treatment plan Thu Apr 13 17:31:15 2017&quot;
147-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:15 2017&quot;
148-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:15 2017&quot;</code></pre>
140+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:40:59 2017&quot;
141+
## [1] &quot;designing treatments Thu Apr 13 17:40:59 2017&quot;
142+
## [1] &quot; have level statistics Thu Apr 13 17:40:59 2017&quot;
143+
## [1] &quot;design var x Thu Apr 13 17:40:59 2017&quot;
144+
## [1] &quot;design var z Thu Apr 13 17:40:59 2017&quot;
145+
## [1] &quot; scoring treatments Thu Apr 13 17:40:59 2017&quot;
146+
## [1] &quot;have treatment plan Thu Apr 13 17:40:59 2017&quot;
147+
## [1] &quot;rescoring complex variables Thu Apr 13 17:40:59 2017&quot;
148+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:00 2017&quot;</code></pre>
149149
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">print</span>(treatmentsC)</code></pre></div>
150150
<pre><code>## $treatments
151151
## $treatments[[1]]
@@ -264,15 +264,15 @@ <h2>A Numeric Outcome Example</h2>
264264
## 3 c 30
265265
## 4 &lt;NA&gt; NA</code></pre>
266266
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">treatmentsN =<span class="st"> </span><span class="kw">designTreatmentsN</span>(dTrainN,<span class="kw">colnames</span>(dTrainN),<span class="st">'y'</span>)</code></pre></div>
267-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:15 2017&quot;
268-
## [1] &quot;designing treatments Thu Apr 13 17:31:15 2017&quot;
269-
## [1] &quot; have level statistics Thu Apr 13 17:31:15 2017&quot;
270-
## [1] &quot;design var x Thu Apr 13 17:31:15 2017&quot;
271-
## [1] &quot;design var z Thu Apr 13 17:31:15 2017&quot;
272-
## [1] &quot; scoring treatments Thu Apr 13 17:31:15 2017&quot;
273-
## [1] &quot;have treatment plan Thu Apr 13 17:31:15 2017&quot;
274-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:15 2017&quot;
275-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:15 2017&quot;</code></pre>
267+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:00 2017&quot;
268+
## [1] &quot;designing treatments Thu Apr 13 17:41:00 2017&quot;
269+
## [1] &quot; have level statistics Thu Apr 13 17:41:00 2017&quot;
270+
## [1] &quot;design var x Thu Apr 13 17:41:00 2017&quot;
271+
## [1] &quot;design var z Thu Apr 13 17:41:00 2017&quot;
272+
## [1] &quot; scoring treatments Thu Apr 13 17:41:00 2017&quot;
273+
## [1] &quot;have treatment plan Thu Apr 13 17:41:00 2017&quot;
274+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:00 2017&quot;
275+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:00 2017&quot;</code></pre>
276276
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="kw">print</span>(treatmentsN)</code></pre></div>
277277
<pre><code>## $treatments
278278
## $treatments[[1]]

inst/doc/vtreatCrossFrames.html

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,18 @@ <h2>The Wrong Way</h2>
117117
<span class="st">'y'</span>,<span class="ot">TRUE</span>,
118118
<span class="dt">rareCount=</span><span class="dv">0</span> <span class="co"># Note: usually want rareCount&gt;0, setting to zero to illustrate problem</span>
119119
)</code></pre></div>
120-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:16 2017&quot;
121-
## [1] &quot;designing treatments Thu Apr 13 17:31:16 2017&quot;
122-
## [1] &quot; have level statistics Thu Apr 13 17:31:16 2017&quot;
123-
## [1] &quot;design var xBad1 Thu Apr 13 17:31:16 2017&quot;
124-
## [1] &quot;design var xBad2 Thu Apr 13 17:31:16 2017&quot;
125-
## [1] &quot;design var xBad3 Thu Apr 13 17:31:16 2017&quot;
126-
## [1] &quot;design var xGood1 Thu Apr 13 17:31:16 2017&quot;
127-
## [1] &quot;design var xGood2 Thu Apr 13 17:31:16 2017&quot;
128-
## [1] &quot; scoring treatments Thu Apr 13 17:31:16 2017&quot;
129-
## [1] &quot;have treatment plan Thu Apr 13 17:31:16 2017&quot;
130-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:16 2017&quot;
131-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:17 2017&quot;</code></pre>
120+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:00 2017&quot;
121+
## [1] &quot;designing treatments Thu Apr 13 17:41:00 2017&quot;
122+
## [1] &quot; have level statistics Thu Apr 13 17:41:00 2017&quot;
123+
## [1] &quot;design var xBad1 Thu Apr 13 17:41:00 2017&quot;
124+
## [1] &quot;design var xBad2 Thu Apr 13 17:41:01 2017&quot;
125+
## [1] &quot;design var xBad3 Thu Apr 13 17:41:01 2017&quot;
126+
## [1] &quot;design var xGood1 Thu Apr 13 17:41:01 2017&quot;
127+
## [1] &quot;design var xGood2 Thu Apr 13 17:41:01 2017&quot;
128+
## [1] &quot; scoring treatments Thu Apr 13 17:41:01 2017&quot;
129+
## [1] &quot;have treatment plan Thu Apr 13 17:41:01 2017&quot;
130+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:01 2017&quot;
131+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:02 2017&quot;</code></pre>
132132
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">dTrainTreated &lt;-<span class="st"> </span>vtreat::<span class="kw">prepare</span>(treatments,dTrain,
133133
<span class="dt">pruneSig=</span><span class="kw">c</span>() <span class="co"># Note: usually want pruneSig to be a small fraction, setting to null to illustrate problems</span>
134134
)
@@ -197,18 +197,18 @@ <h2>The Right Way: A Calibration Set</h2>
197197
<span class="st">'y'</span>,<span class="ot">TRUE</span>,
198198
<span class="dt">rareCount=</span><span class="dv">0</span> <span class="co"># Note: usually want rareCount&gt;0, setting to zero to illustrate problem</span>
199199
)</code></pre></div>
200-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:17 2017&quot;
201-
## [1] &quot;designing treatments Thu Apr 13 17:31:17 2017&quot;
202-
## [1] &quot; have level statistics Thu Apr 13 17:31:17 2017&quot;
203-
## [1] &quot;design var xBad1 Thu Apr 13 17:31:17 2017&quot;
204-
## [1] &quot;design var xBad2 Thu Apr 13 17:31:17 2017&quot;
205-
## [1] &quot;design var xBad3 Thu Apr 13 17:31:17 2017&quot;
206-
## [1] &quot;design var xGood1 Thu Apr 13 17:31:17 2017&quot;
207-
## [1] &quot;design var xGood2 Thu Apr 13 17:31:17 2017&quot;
208-
## [1] &quot; scoring treatments Thu Apr 13 17:31:17 2017&quot;
209-
## [1] &quot;have treatment plan Thu Apr 13 17:31:17 2017&quot;
210-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:17 2017&quot;
211-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:18 2017&quot;</code></pre>
200+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:02 2017&quot;
201+
## [1] &quot;designing treatments Thu Apr 13 17:41:02 2017&quot;
202+
## [1] &quot; have level statistics Thu Apr 13 17:41:02 2017&quot;
203+
## [1] &quot;design var xBad1 Thu Apr 13 17:41:02 2017&quot;
204+
## [1] &quot;design var xBad2 Thu Apr 13 17:41:02 2017&quot;
205+
## [1] &quot;design var xBad3 Thu Apr 13 17:41:02 2017&quot;
206+
## [1] &quot;design var xGood1 Thu Apr 13 17:41:02 2017&quot;
207+
## [1] &quot;design var xGood2 Thu Apr 13 17:41:02 2017&quot;
208+
## [1] &quot; scoring treatments Thu Apr 13 17:41:02 2017&quot;
209+
## [1] &quot;have treatment plan Thu Apr 13 17:41:02 2017&quot;
210+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:02 2017&quot;
211+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:02 2017&quot;</code></pre>
212212
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">dTrainTreated &lt;-<span class="st"> </span>vtreat::<span class="kw">prepare</span>(treatments,dTrain,
213213
<span class="dt">pruneSig=</span>pruneSig)
214214
newvars &lt;-<span class="st"> </span><span class="kw">setdiff</span>(<span class="kw">colnames</span>(dTrainTreated),<span class="st">'y'</span>)

inst/doc/vtreatGrouping.html

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

inst/doc/vtreatOverfit.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ <h2>Bad Practice: Using the same data to treat and to train</h2>
9696
treatments &lt;-<span class="st"> </span>vtreat::<span class="kw">designTreatmentsC</span>(dTrain,<span class="st">'x'</span>,<span class="st">'y'</span>,<span class="ot">TRUE</span>,
9797
<span class="dt">rareCount=</span><span class="dv">0</span> <span class="co"># Note: usually want rareCount&gt;0, setting to zero to illustrate problem</span>
9898
)</code></pre></div>
99-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:24 2017&quot;
100-
## [1] &quot;designing treatments Thu Apr 13 17:31:24 2017&quot;
101-
## [1] &quot; have level statistics Thu Apr 13 17:31:24 2017&quot;
102-
## [1] &quot;design var x Thu Apr 13 17:31:24 2017&quot;
103-
## [1] &quot; scoring treatments Thu Apr 13 17:31:24 2017&quot;
104-
## [1] &quot;have treatment plan Thu Apr 13 17:31:24 2017&quot;
105-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:24 2017&quot;
106-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:24 2017&quot;</code></pre>
99+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:08 2017&quot;
100+
## [1] &quot;designing treatments Thu Apr 13 17:41:08 2017&quot;
101+
## [1] &quot; have level statistics Thu Apr 13 17:41:08 2017&quot;
102+
## [1] &quot;design var x Thu Apr 13 17:41:08 2017&quot;
103+
## [1] &quot; scoring treatments Thu Apr 13 17:41:08 2017&quot;
104+
## [1] &quot;have treatment plan Thu Apr 13 17:41:08 2017&quot;
105+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:08 2017&quot;
106+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:08 2017&quot;</code></pre>
107107
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">dTrainTreated &lt;-<span class="st"> </span>vtreat::<span class="kw">prepare</span>(treatments,dTrain,
108108
<span class="dt">pruneSig=</span><span class="kw">c</span>() <span class="co"># Note: usually want pruneSig to be a small fraction, setting to null to illustrate problem</span>
109109
)
@@ -195,14 +195,14 @@ <h2>Correct Practice 1/2: Use different data to treat and train</h2>
195195
<span class="dt">rareCount=</span><span class="dv">0</span>, <span class="co"># Note set this to something larger, like 5</span>
196196
<span class="dt">rareSig=</span><span class="kw">c</span>() <span class="co"># Note set this to something like 0.3</span>
197197
)</code></pre></div>
198-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:25 2017&quot;
199-
## [1] &quot;designing treatments Thu Apr 13 17:31:25 2017&quot;
200-
## [1] &quot; have level statistics Thu Apr 13 17:31:25 2017&quot;
201-
## [1] &quot;design var x Thu Apr 13 17:31:25 2017&quot;
202-
## [1] &quot; scoring treatments Thu Apr 13 17:31:25 2017&quot;
203-
## [1] &quot;have treatment plan Thu Apr 13 17:31:25 2017&quot;
204-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:25 2017&quot;
205-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:25 2017&quot;</code></pre>
198+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:08 2017&quot;
199+
## [1] &quot;designing treatments Thu Apr 13 17:41:08 2017&quot;
200+
## [1] &quot; have level statistics Thu Apr 13 17:41:08 2017&quot;
201+
## [1] &quot;design var x Thu Apr 13 17:41:08 2017&quot;
202+
## [1] &quot; scoring treatments Thu Apr 13 17:41:08 2017&quot;
203+
## [1] &quot;have treatment plan Thu Apr 13 17:41:08 2017&quot;
204+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:08 2017&quot;
205+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:08 2017&quot;</code></pre>
206206
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">dTrainTreated &lt;-<span class="st"> </span>vtreat::<span class="kw">prepare</span>(treatments,dTrain,
207207
<span class="dt">pruneSig=</span><span class="kw">c</span>() <span class="co"># Note: set this to filter, like 0.05 or 1/nvars</span>
208208
)

inst/doc/vtreatSignificance.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ <h4 class="date"><em>2017-04-13</em></h4>
119119
## 2 FALSE lev002 lev002F
120120
## 252 FALSE lev002 lev002F</code></pre>
121121
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r">treatmentsC &lt;-<span class="st"> </span>vtreat::<span class="kw">designTreatmentsC</span>(d,<span class="kw">c</span>(<span class="st">'catVarNoise'</span>,<span class="st">'catVarPerfect'</span>),<span class="st">'y'</span>,<span class="ot">TRUE</span>)</code></pre></div>
122-
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:31:31 2017&quot;
123-
## [1] &quot;designing treatments Thu Apr 13 17:31:31 2017&quot;
124-
## [1] &quot; have level statistics Thu Apr 13 17:31:32 2017&quot;
125-
## [1] &quot;design var catVarNoise Thu Apr 13 17:31:32 2017&quot;
126-
## [1] &quot;design var catVarPerfect Thu Apr 13 17:31:32 2017&quot;
127-
## [1] &quot; scoring treatments Thu Apr 13 17:31:32 2017&quot;
128-
## [1] &quot;have treatment plan Thu Apr 13 17:31:32 2017&quot;
129-
## [1] &quot;rescoring complex variables Thu Apr 13 17:31:32 2017&quot;
130-
## [1] &quot;done rescoring complex variables Thu Apr 13 17:31:32 2017&quot;</code></pre>
122+
<pre><code>## [1] &quot;desigining treatments Thu Apr 13 17:41:15 2017&quot;
123+
## [1] &quot;designing treatments Thu Apr 13 17:41:15 2017&quot;
124+
## [1] &quot; have level statistics Thu Apr 13 17:41:15 2017&quot;
125+
## [1] &quot;design var catVarNoise Thu Apr 13 17:41:15 2017&quot;
126+
## [1] &quot;design var catVarPerfect Thu Apr 13 17:41:15 2017&quot;
127+
## [1] &quot; scoring treatments Thu Apr 13 17:41:15 2017&quot;
128+
## [1] &quot;have treatment plan Thu Apr 13 17:41:15 2017&quot;
129+
## [1] &quot;rescoring complex variables Thu Apr 13 17:41:15 2017&quot;
130+
## [1] &quot;done rescoring complex variables Thu Apr 13 17:41:15 2017&quot;</code></pre>
131131
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># Estimate effect significance (not coefficient significance).</span>
132132
estSigGLM &lt;-<span class="st"> </span>function(xVar,yVar,<span class="dt">numberOfHiddenDegrees=</span><span class="dv">0</span>) {
133133
d &lt;-<span class="st"> </span><span class="kw">data.frame</span>(<span class="dt">x=</span>xVar,<span class="dt">y=</span>yVar,<span class="dt">stringsAsFactors =</span> <span class="ot">FALSE</span>)

0 commit comments

Comments
 (0)