Loading TOC...

math.linearModelRsquared

math.linearModelRsquared(
   $linear-model as math.linearModel
) as Number

Summary

Returns the R^2 value of the linear model.

Parameters
$linear-model A linear model.

Example

var arr = new Array();
for (i=1; i < 11; i++) { 
  var x = new Array();
  var j = 2 * i;
  x.push(j, i);
  arr.push(x); };
var lm = math.linearModel(xdmp.arrayValues(arr));
math.linearModelRsquared(lm);

  => 1

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.