Why does using a variable create an error?<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Can anyone explain why, in JMP 8
summarize(qlow=quantile(8,0.25))
works as desired (putting the 0.25 quantile statistics of the 8th column into variable qlow), but
::aa=8;
summarrize(qlow=quantile(::aa,0.25))
gives the error message
Column not found in access or evaluation of 'aa' , ::aa
?
Re: Why does using a variable create an error?Variables don't always work the way you think they will in JSL. I suspect that the quantile argument expects either a column descriptor (:My Column), column number, or column reference:
column(8)
column("My Column")
Just supplying ::aa confused it.
Re: Why does using a variable create an error?It does.
Why does it?
Re: Why does using a variable create an error?This works:
summarize(qlow=quantile(column(::aa),0.25));