|
189 | 189 | <ul> |
190 | 190 | <li class="chapter" data-level="" data-path="usage-1.html"><a href="usage-1.html#error-handling"><i class="fa fa-check"></i>Error Handling</a></li> |
191 | 191 | </ul></li> |
192 | | -<li class="chapter" data-level="9" data-path="examples.html"><a href="examples.html"><i class="fa fa-check"></i><b>9</b> Examples</a> |
193 | | -<ul> |
194 | | -<li class="chapter" data-level="" data-path="examples.html"><a href="examples.html#example-1"><i class="fa fa-check"></i>Example 1</a></li> |
195 | | -<li class="chapter" data-level="" data-path="examples.html"><a href="examples.html#example-2-binding-custom-variables"><i class="fa fa-check"></i>Example 2: Binding Custom Variables</a></li> |
196 | | -<li class="chapter" data-level="" data-path="examples.html"><a href="examples.html#example-3-calling-a-free-function"><i class="fa fa-check"></i>Example 3: Calling a Free Function</a></li> |
197 | | -<li class="chapter" data-level="" data-path="examples.html"><a href="examples.html#example-4-non-us-formatted-formulas"><i class="fa fa-check"></i>Example 4: Non-US Formatted Formulas</a></li> |
198 | | -<li class="chapter" data-level="" data-path="examples.html"><a href="examples.html#example-5"><i class="fa fa-check"></i>Example 5: Binding to Custom Classes</a></li> |
199 | | -</ul></li> |
| 192 | +<li class="chapter" data-level="9" data-path="example.html"><a href="example.html"><i class="fa fa-check"></i><b>9</b> Example</a></li> |
200 | 193 | <li class="chapter" data-level="10" data-path="custom-extensions.html"><a href="custom-extensions.html"><i class="fa fa-check"></i><b>10</b> Custom Extensions</a> |
201 | 194 | <ul> |
| 195 | +<li class="chapter" data-level="" data-path="custom-extensions.html"><a href="custom-extensions.html#binding-to-custom-variables"><i class="fa fa-check"></i>Binding to Custom Variables</a></li> |
202 | 196 | <li class="chapter" data-level="" data-path="custom-extensions.html"><a href="custom-extensions.html#binding-to-custom-functions"><i class="fa fa-check"></i>Binding to Custom Functions</a></li> |
203 | 197 | <li class="chapter" data-level="" data-path="custom-extensions.html"><a href="custom-extensions.html#binding-to-custom-classes"><i class="fa fa-check"></i>Binding to Custom Classes</a></li> |
204 | 198 | </ul></li> |
@@ -251,17 +245,17 @@ <h1><span class="header-section-number">Chapter 6</span> Comments<a href="commen |
251 | 245 | </ul> |
252 | 246 | <p>For example, assuming that the variables <code>P_LEVEL</code> and <code>N_OBS</code> have been |
253 | 247 | defined within the parser, an expression such as this could be used:</p> |
254 | | -<div class="sourceCode" id="cb4"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb4-1"><a href="comments.html#cb4-1" tabindex="-1"></a><span class="co">/* Returns the p-level of a study if:</span></span> |
255 | | -<span id="cb4-2"><a href="comments.html#cb4-2" tabindex="-1"></a><span class="co"> p-level < 5% AND</span></span> |
256 | | -<span id="cb4-3"><a href="comments.html#cb4-3" tabindex="-1"></a><span class="co"> number of observations was at least 30.</span></span> |
257 | | -<span id="cb4-4"><a href="comments.html#cb4-4" tabindex="-1"></a><span class="co"> Otherwise, NaN is returned. */</span></span> |
258 | | -<span id="cb4-5"><a href="comments.html#cb4-5" tabindex="-1"></a></span> |
259 | | -<span id="cb4-6"><a href="comments.html#cb4-6" tabindex="-1"></a>IF<span class="op">(</span><span class="co">// Review the results from the analysis</span></span> |
260 | | -<span id="cb4-7"><a href="comments.html#cb4-7" tabindex="-1"></a> AND<span class="op">(</span>P_LEVEL <span class="op"><</span> <span class="fl">.05</span><span class="op">,</span> N_OBS <span class="op">>=</span> <span class="dv">30</span><span class="op">),</span></span> |
261 | | -<span id="cb4-8"><a href="comments.html#cb4-8" tabindex="-1"></a> <span class="co">// ...and return the p-level if acceptable</span></span> |
262 | | -<span id="cb4-9"><a href="comments.html#cb4-9" tabindex="-1"></a> P_LEVEL<span class="op">,</span></span> |
263 | | -<span id="cb4-10"><a href="comments.html#cb4-10" tabindex="-1"></a> <span class="co">// or NaN if not</span></span> |
264 | | -<span id="cb4-11"><a href="comments.html#cb4-11" tabindex="-1"></a> NAN<span class="op">)</span></span></code></pre></div> |
| 248 | +<div class="sourceCode" id="cb5"><pre class="sourceCode cpp"><code class="sourceCode cpp"><span id="cb5-1"><a href="comments.html#cb5-1" tabindex="-1"></a><span class="co">/* Returns the p-level of a study if:</span></span> |
| 249 | +<span id="cb5-2"><a href="comments.html#cb5-2" tabindex="-1"></a><span class="co"> p-level < 5% AND</span></span> |
| 250 | +<span id="cb5-3"><a href="comments.html#cb5-3" tabindex="-1"></a><span class="co"> number of observations was at least 30.</span></span> |
| 251 | +<span id="cb5-4"><a href="comments.html#cb5-4" tabindex="-1"></a><span class="co"> Otherwise, NaN is returned. */</span></span> |
| 252 | +<span id="cb5-5"><a href="comments.html#cb5-5" tabindex="-1"></a></span> |
| 253 | +<span id="cb5-6"><a href="comments.html#cb5-6" tabindex="-1"></a>IF<span class="op">(</span><span class="co">// Review the results from the analysis</span></span> |
| 254 | +<span id="cb5-7"><a href="comments.html#cb5-7" tabindex="-1"></a> AND<span class="op">(</span>P_LEVEL <span class="op"><</span> <span class="fl">.05</span><span class="op">,</span> N_OBS <span class="op">>=</span> <span class="dv">30</span><span class="op">),</span></span> |
| 255 | +<span id="cb5-8"><a href="comments.html#cb5-8" tabindex="-1"></a> <span class="co">// ...and return the p-level if acceptable</span></span> |
| 256 | +<span id="cb5-9"><a href="comments.html#cb5-9" tabindex="-1"></a> P_LEVEL<span class="op">,</span></span> |
| 257 | +<span id="cb5-10"><a href="comments.html#cb5-10" tabindex="-1"></a> <span class="co">// or NaN if not</span></span> |
| 258 | +<span id="cb5-11"><a href="comments.html#cb5-11" tabindex="-1"></a> NAN<span class="op">)</span></span></code></pre></div> |
265 | 259 |
|
266 | 260 | </div> |
267 | 261 |
|
|
0 commit comments