cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use JMP Live to centralize and share reports within groups. Webinar with Q&A April 4, 2pm ET.
Choose Language Hide Translation Bar
View Original Published Thread

Is there a way to calculate erfc(x) in JMP?

surfacethought
Level III

Title is pretty self explanatory. I am trying to do non-linear least squares with a transcendental function that includes the error function (complement). However when I try to define a predict column using the function I was sad to find that there is no erf(x) in the transcendental group of functions. Without being able to calculate the error function there is no way that I can perform this nonlinear least squares in JMP!  Does anyone know if it is possible to do in JMP? I can use an approximation using elementary functions, however I would like to avoid adding any error if at all necessary. Thanks!

--

SurfaceThought

1 ACCEPTED SOLUTION

Accepted Solutions
mpb
mpb
Level VII


Re: Is there a way to calculate erfc(x) in JMP?

erf(X) = 2 * Normal Distribution( :X * Root( 2, 2 ) ) - 1

erfc(X) = 1 - erf(X) = 2 * Normal Distribution(-:X * Root( 2, 2 ) )

where "Normal Distribution()" is the cumulative normal distribution function available in JMP for use in either scripts or column formulas.

View solution in original post

4 REPLIES 4
mpb
mpb
Level VII


Re: Is there a way to calculate erfc(x) in JMP?

erf(X) = 2 * Normal Distribution( :X * Root( 2, 2 ) ) - 1

erfc(X) = 1 - erf(X) = 2 * Normal Distribution(-:X * Root( 2, 2 ) )

where "Normal Distribution()" is the cumulative normal distribution function available in JMP for use in either scripts or column formulas.

surfacethought
Level III


Re: Is there a way to calculate erfc(x) in JMP?

Alright I think this is very much on the right track, thank you so much. I just have one question, whats the purpose of the colon inside the Normal Distribution function?

Edit: Yeah that's definitely what I needed. You rock! thanks for the help!

pmroz
Super User


Re: Is there a way to calculate erfc(x) in JMP?

The colon indicates that X is a column name.  If you are defining a column formula in terms of other columns, this is how you would reference it.

surfacethought
Level III


Re: Is there a way to calculate erfc(x) in JMP?

Oh okay great that's easy enough .

Thank You!