Ratios and Differences Object

The Ratios and Differences tool in Phoenix is a data manipulation tool that is used to compare data from either one or two worksheets by computing ratios or differences. The computations are based on sort variables and on a variable that defines how data values are to be used as the X values and Y values of the ratios or differences. In Pharmacokinetics, ratios are often computed for observation data collected under two different scenarios and for resulting final parameters from two NCA or Mod­eling executions. For discrete final parameters or log-transformed observation data, differences may be applicable instead of ratios.

Use one of the following to add a Ratios and Differences object to a Workflow:

Right-click menu for a Workflow object: New > Data > Ratios and Differences.
Main menu: Insert > Data > Ratios and Differences.
Right-click menu for a worksheet: Send To > Data > Ratios and Differences.

Note:To view the object in its own window, select it in the Object Browser and double-click it or press ENTER. All instructions for setting up and execution are the same whether the object is viewed in its own window or in Phoenix view.

Additional information is available on the following topics:

User interface description

Results

An example of using the Ratios and Differences object can be found in the “Analysis of three profiles using NCA” Phoenix WinNonlin example.

User interface description

Worksheet 1 and 2 Mappings panel

Use the Worksheet Mappings panels to identify how input variables are used in the object.

Sort: (Optional) Categorical variable(s) identifying individual data profiles, such as subject ID or gender. Separate computations are computed for each unique combination of sort variables. When no Sorts are identified for a worksheet, the input is assumed to be from one profile.

Filter: (Optional) Column containing the X or Y filter value. It defines which data (in another col­umn) is to be used for X and which data (in another column) is for Y, i.e., the X/Y Filter mapping is a special case of a sort variable that is used to split or filter the data into subsets. For example, a column named Day is mapped which contains the values Day 1 and Day 14, and Day 1 will be used to filter for the rows where data in other columns will be used as numerator values, and sim­ilarly Day 14 will be used to filter for the rows where data in other columns will be used as denom­inator values. If Filter is not mapped, then only the Sort(s) are used to split the data.

Carry: (Optional) Columns from the source worksheet will be copied to the result worksheet.

Note:If no Sort or Filter is mapped, then this defines a special case where the X and Y columns will be required to be different columns (either on one worksheet or from two worksheets), and the Ratios and Differences object will compute the X/Y ratios (or differences) row-by-row.

Sort Map Mappings panel

If a second worksheet is used, then the Sort Map worksheet may be needed to map the column names of Worksheet 1 and Worksheet 2, if they differ. This will allow rows in both worksheets to be merged based on their sort keys. The Worksheet 1 Sort Keys and Worksheet 2 Sort Keys pull-down menus are populated with the names of the columns defined as Sort keys on each worksheet’s mapping panel. Required input is highlighted orange in the interface.

The Sort Map will automatically map columns of the same name. If there is not a matching name for a Worksheet 1 column, the Worksheet 2 column name will be blank.

Options tab

The Options tab is used to define the ratio and/or difference calculations that will be executed at run­time. Additional rows may be added by pressing the Add button, which becomes active once the input for Worksheet 1 is specified.

RatiosDiffs_Optionstab.png 

Results

Worksheet output

In the stacked results worksheet(s), mapped columns are listed first, followed by parameter data col­umns used in the comparison computation, then the ratio/difference columns, and then the Carry variables.

Cells in the comparison columns will be empty for the X input worksheet data or if the Filter column is used and its value is the same as the X value.

The unstacked results worksheet(s), the X values, Y values, and ratios (or differences) are listed side-by-side, for each defined comparison, followed by the Carry variables.

Text output

Settings: The input worksheet used and the options selected.

Warnings and Errors: If any runtime errors are encountered, they are written to this file.

 


Last modified date:6/26/19
Certara USA, Inc.
Legal Notice | Contact Certara
© 2019 Certara USA, Inc. All rights reserved.