cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
seb38360
Level I

Col Mean behaviour with hide/exclude

Hello, I observe that when I use ColMean function in one column that the value in the column is not updated when I hide/exclude some rows.

I think this is not a normal behaviour - there is no automatic recalculation.

 

May be we can avoid this with script but I would prefer to avoid.

 

If someone has a solution, thank you in advance

 

Regards

 

Sébastien  

1 REPLY 1
uday_guntupalli
Level VIII

Re: Col Mean behaviour with hide/exclude

@seb38360

 Try this. 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt << New Column("Test",Numeric,Continuous,Formula(Col Mean( :height)));

dt << Select Randomly(0.1) << Exclude; 

dt << New Column("Test",Numeric,Continuous,Formula(Col Mean(If(Excluded(), ., :height))));
Best
Uday

Recommended Articles