cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
jmiller
Level I

Set Seed for Anderson-Darling Simulated p-Value

Hi,

 

I am wondering if it is possible to set the seed for the Anderson-Darling Goodness-of-Fit test in the JMP "Distribution" platform. I'd like to be able to replicate the Anderson-Darling simulated p-value result every time I run the script. 

 

I am open to scripting solutions. 

 

I am using JMP 16.2.0. 

 

Thank you,

Justin

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Set Seed for Anderson-Darling Simulated p-Value

There might be other options, but Random Reset seems might work

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
obj = Distribution(Column(:CO));
Random Reset(112);
obj << Fit Lognormal(Goodness of Fit(1));
wait(1);
obj = Distribution(Column(:CO));
Random Reset(112);
obj << Fit Lognormal(Goodness of Fit(1));

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: Set Seed for Anderson-Darling Simulated p-Value

There might be other options, but Random Reset seems might work

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
obj = Distribution(Column(:CO));
Random Reset(112);
obj << Fit Lognormal(Goodness of Fit(1));
wait(1);
obj = Distribution(Column(:CO));
Random Reset(112);
obj << Fit Lognormal(Goodness of Fit(1));

 

-Jarmo