If you are going to use the Nonlinear platform to fit the data using the maximum likelihood method, you need following pieces.
First, the density function of your truncated Cauchy(0, gamma).
Refer to the PDF formula on this page https://en.wikipedia.org/wiki/Truncated_distribution
![peng_liu_0-1720702459059.png peng_liu_0-1720702459059.png](/t5/image/serverpage/image-id/66076i4DBC3F0DD793F43C/image-size/small?v=v2&px=200)
In your case, b = 2, and a = 0.
On the numerator, it is the Cauch(0, gamma) density function, in your case. Find it in the JMP scripting index:
![peng_liu_1-1720702553078.png peng_liu_1-1720702553078.png](/t5/image/serverpage/image-id/66077iD272C21A6A359DE1/image-size/medium?v=v2&px=400)
On the denominator, F function is the Cauchy(0, gamma) distribution, in your case. Find it in the index:
![peng_liu_2-1720702629479.png peng_liu_2-1720702629479.png](/t5/image/serverpage/image-id/66078iE65EF2B883382E57/image-size/medium?v=v2&px=400)
Now you need to piece the information to create a negative log-likelihood loss function formula column.
The formula is something like the following. (Assume your data column is called "Y".)
![peng_liu_0-1720703900782.png peng_liu_0-1720703900782.png](/t5/image/serverpage/image-id/66079i9B3D83537F455D1B/image-size/medium?v=v2&px=400)
It is a JSL function "Parameter". The first argument is a list of parameters that we need to fit. In this case, there is only one here: gamma. And the value 1 is an initial value. It should be as close to the final estimate as possible. So, use your best judgement. Or you can trial-and-error it out. Don't worry if it is not close initially. Nonlinear platform allows you to try different values after launching.
The second argument of "Parameter" function call is that negative loglikelihood function. Take a look at it and see how it comes from the density function of your truncation Cauchy.
Name the new column "loss". And configure Nonlinear launch dialog. Click "OK".
![peng_liu_1-1720704334845.png peng_liu_1-1720704334845.png](/t5/image/serverpage/image-id/66080iDBCD4F9160C85727/image-size/medium?v=v2&px=400)
After launching, you can click "Go", or change the value of "gamma" then click "Go". If failed, you can change "gamma" and click "Go" again.
![peng_liu_2-1720704822530.png peng_liu_2-1720704822530.png](/t5/image/serverpage/image-id/66081i8F29D7461E045E0D/image-size/medium?v=v2&px=400)
Here are the links to a few relevant documentation:
https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/create-formulas-in-jmp.shtml#ww96570
https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/nonlinear-regression.shtml#
https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/create-formula-columns-for-multiple-co...
https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/create-a-formula-column.shtml