Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gjkerns committed Mar 8, 2013
1 parent 767ea20 commit d642990
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ob-doc-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,13 @@ <h3 id="sec-4-2">Fitting (generalized) linear models</h3>
</pre>
</div>

<pre class="example">
3-element Float64 Array:
10.8164
-0.0454835
0.19518
</pre>

<p>
and we can finish by looking at a summary table similar to something
like <code>summary(treeslm)</code> in R.
Expand All @@ -773,6 +780,14 @@ <h3 id="sec-4-2">Fitting (generalized) linear models</h3>
<pre class="src src-julia"><span style="color: #0000ff;">coeftable</span>(treeslm)
</pre>
</div>

<pre class="example">
3x4 DataFrame:
Estimate Std.Error t value Pr(&gt;|t|)
[1,] 10.8164 1.9732 5.48165 7.44691e-6
[2,] -0.0454835 0.0282621 -1.60935 0.118759
[3,] 0.19518 0.0109553 17.8161 8.2233e-17
</pre>
</div>
</div>
</div>
Expand Down
13 changes: 13 additions & 0 deletions ob-doc-template.org
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,26 @@ coefficients with the =coef= function:
coef(treeslm)
#+END_SRC

#+RESULTS:
: 3-element Float64 Array:
: 10.8164
: -0.0454835
: 0.19518

and we can finish by looking at a summary table similar to something
like =summary(treeslm)= in R.

#+BEGIN_SRC julia
coeftable(treeslm)
#+END_SRC

#+RESULTS:
: 3x4 DataFrame:
: Estimate Std.Error t value Pr(>|t|)
: [1,] 10.8164 1.9732 5.48165 7.44691e-6
: [2,] -0.0454835 0.0282621 -1.60935 0.118759
: [3,] 0.19518 0.0109553 17.8161 8.2233e-17

* Export to other formats

Sooner or later you will want to share your work with others, people
Expand Down

0 comments on commit d642990

Please sign in to comment.