Choose Language Hide Translation Bar
Highlighted
rdzdec
Level I

Re: Calculating linear regression slope in formula

Hi, 

 

You mention a "span of 3", if we want to modify it to be moving slope of "N" samples, which value will need to change?

 

Thanks!

Highlighted
mksaad
Level I

Re: Calculating linear regression slope in formula

@markbailey Hi mark, I am new to JMP and am trying to do something similar to bio_grad where I perform linear regression on 3 points, then 4 points, then so on in a column in my data table. I am trying to understand what your answer is actually doing and had a couple of questions. What does || mean? also what is J?
Highlighted
txnelson
Super User

Re: Calculating linear regression slope in formula

J() is a function that creates a matrix of identical values.  The default is 1.

|| is an operator that indicate concatenation.  So in Mark's example he is concatenating 2 matrices.

 

These functions and operators are fully documented in the Scripting Guide

     Help==>JMP Document Library  …..  Scripting Guide

Jim
Article Labels

    There are no labels assigned to this post.