turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Is there a way to calculate erfc(x) in JMP?

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Aug 8, 2012 8:59 AM
(865 views)

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Solution

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.

4 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Aug 8, 2012 1:25 PM
(645 views)

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!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Aug 8, 2012 1:30 PM
(645 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Aug 8, 2012 1:51 PM
(645 views)