cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • 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!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • 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
DBiber
Level I

Using specific row values for use in a formula

Hey there,

I'm sure this has been covered in the past, but I had trouble finding something that matched.  In a new column I would like to calculate Average release for condition 9 as compared to the same time points in the control.

 

Something like this logic:

When Condition # =! "Control",

Divide average release by the corresponing average release (by Time Point) in the Control.

 

Eventually I would like to perform F2 dissolution comparison calculations in a column but need to start with calling a specific row first.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Using specific row values for use in a formula

Try this formula

If( :Condition # == "Control",
	.,
	:Average Release / Col Mean( If( :Condition # == "Control", :Average Release, . ), :Time Point )
)
Jim

View solution in original post

2 REPLIES 2
uday_guntupalli
Level VIII

Re: Using specific row values for use in a formula

@DBiber
   I am presuming you are looking for something like this. But I am not sure I follow your question - so let me know if this is not what you want. 

 

dt = Current Data Table(); 

SR = dt << Select Where(:Condition # == "9") << Get Selected Rows; 

Show(SR); // Print selected rows to log 

Denominator = Mean(:Time Point[SR]); // Correct as needed for your formula 

dt << Clear Select; 

NewCol = (dt:Average Release << Get Values)/Denominator; 

dt << New Column("Test",Numeric,Continuous,<< Set Values(NewCol)); 
Best
Uday
txnelson
Super User

Re: Using specific row values for use in a formula

Try this formula

If( :Condition # == "Control",
	.,
	:Average Release / Col Mean( If( :Condition # == "Control", :Average Release, . ), :Time Point )
)
Jim

Recommended Articles