cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Linear Regression Action Block

Former Member
0 Kudos
140

Does anyone know how to use the linear regression action block? I don't see any documentation in the xMII helpfile.

Thanks,

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The Linear regression action block results in an IllumDocument with three columns, for example:


<Row>
    <orderid>10704</orderid>
    <unitprice>4.5</unitprice>
    <pre><code>3.814032673322</code></pre>
</Row>

You have to "feed" the action block with another IllumDocument, in most cases probably a Query action block result. I mapped a query that returns OrderIDs and unitPrices. In the Linear action block, I mapped the OrderId as the XAxis value and UnitPrice as the YAxis value. (This probably does not make sense in a "real" situation). The Linear Regression calculations the "Predicted" column in the Output of the Linear Regression action block. You can also get slope and intercept information from the action block.

Answers (0)