Post Reply 
Manipulating list in order to interpolate
06-19-2016, 07:29 AM (This post was last modified: 06-19-2016 07:31 AM by RPL Calcs.)
Post: #2
RE: Manipulating list in order to interpolate
@ Paste in the HPUserEdit and send to emulator
@ "sigma" is the greek letter sigma (somatory); caracter number 133.

[@ A F(A) B F(B)
[ 1 03.3 10 05.1 ]
[ 3 09.2 20 10.2 ]
[ 5 15.1 30 15.3 ]
[ 7 21.2 40 20.1 ]
]
'sigmaDAT' STO
@ sigmaDAT is the variable that contains the current statistical matrix.

{
3. @ column number specifying the independent-variable: "B"
4. @ column number specifying the dependent-variable: "F(B)"
0. @ intercept
0. @ slope
LINFIT @ regression model
}
'sigmaPAR' STO

@ sigmaPAR is the variable that contains the current statistical parameter list.

LR @ Linear Regression command

@ You'll get in the stack:
@ Level 2: Intercept: .15
@ Level 1: Slope: .501

@ 'F(B)=0.15+0.501*B'

@ NOTE:
@ use real numbers in sigmaPAR, not integers. That is:
@ use { 3. 4. 0. 0. LINFIT } and not { 3 4 0 0 LINFIT }.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Manipulating list in order to interpolate - RPL Calcs - 06-19-2016 07:29 AM



User(s) browsing this thread: 1 Guest(s)