how to script a new normalized column
Is there an elegant way to normalize values into a new column using the mean of one group? I have dose response data, with a control group (dose==0) and want to create a new column where each measurement is divided by the control group mean. Each dose has multiple measurements. I can use Distribution with Where to output only the control group mean but then I insert manually that mean into the formula for the new column. I tried putting the Where command into the New Column function and it was rejected (too many parameters). Here is my Distribution script:
New Window( "Distribution",
V List Box(
Distribution(
Continuous Distribution(
Column( :Name( "Brain ChE" ) ),
Histogram( 0 ),
Vertical( 1 ),
Outlier Box Plot( 0 )
),
Where( :Name( "Dose mg/kg" ) == 0 )
),
)
);