Skip to content

Instantly share code, notes, and snippets.

@vznvzn
Created July 29, 2016 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vznvzn/a9c3a5933a88d315f5d46c5642096881 to your computer and use it in GitHub Desktop.
Save vznvzn/a9c3a5933a88d315f5d46c5642096881 to your computer and use it in GitHub Desktop.
#<Daru::DataFrame:26350488 @name = 1bc74fdd-f433-4231-acb6-285e1056feff @size = 10>
x y z
0 -0.7578636 0.09223277 -0.2454774
1 1.81987777 -0.1275641 -1.5700308
2 -1.4820354 -1.6985282 2.36347546
3 0.16219084 -2.9493959 0.76178748
4 0.36093615 2.08200127 0.18933403
5 0.52583002 -0.4889003 -0.3021196
6 -1.5936446 1.43502890 -0.3759412
7 -0.1656706 0.91071341 0.80560026
8 0.44006102 1.70399226 0.84529931
9 -0.5347074 -0.4188520 0.92095035
= Multiple reggresion of x,z on y
Engine: Statsample::Regression::Multiple::RubyEngine
Cases(listwise)=10(10)
R=0.328
R^2=0.107
R^2 Adj=-0.148
Std.Error R=1.679
Equation=0.220 + -0.241x + -0.576z
== ANOVA
ANOVA Table
+------------+--------+----+-------+-------+-------+
| source | ss | df | ms | f | p |
+------------+--------+----+-------+-------+-------+
| Regression | 2.377 | 2 | 1.189 | 0.421 | 0.672 |
| Error | 19.744 | 7 | 2.821 | | |
| Total | 22.121 | 9 | 4.009 | | |
+------------+--------+----+-------+-------+-------+
Beta coefficients
+----------+--------+--------+-------+--------+
| coeff | b | beta | se | t |
+----------+--------+--------+-------+--------+
| Constant | 0.220 | - | 0.562 | 0.391 |
| x | -0.241 | -0.157 | 0.658 | -0.366 |
| z | -0.576 | -0.388 | 0.637 | -0.904 |
+----------+--------+--------+-------+--------+
const 0.21999519426413236
coeffs {"x"=>-0.24063584542693878, "z"=>-0.5759149969383864}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment