Overview Pages |
|
---|---|
tern Package |
|
Analyze functions |
|
Analyze functions in columns |
|
Summarize functions |
|
Formatting functions |
|
Analysis FunctionsAnalyze functions with their corresponding statistics functions and formatted analysis functions.
|
|
Analyze variables |
|
Analyze numeric variables in columns |
|
|
Count number of patients |
|
Count number of patients and sum exposure across all patients in columns |
Compare variables between groups |
|
Count patients with abnormal range values |
|
|
Count patients with abnormal analysis range values by baseline status |
|
Count patients with marked laboratory abnormalities |
|
Count patients by most extreme post-baseline toxicity grade per direction of abnormality |
|
Count patients with toxicity grades that have worsened from baseline by highest grade post-baseline |
|
Cumulative counts of numeric variable by thresholds |
|
Count number of patients with missed doses by thresholds |
|
Count occurrences |
|
Count occurrences by grade |
|
Count patient events in columns |
|
Count the number of patients with a particular event |
|
Count the number of patients with particular flags |
Count specific values |
|
|
Estimate proportions of each level of a variable |
Proportion estimation |
|
|
Incidence rate estimation |
Odds ratio estimation |
|
|
Proportion difference estimation |
Bland-Altman analysis |
|
Cox proportional hazards regression |
|
Summarize analysis of covariance (ANCOVA) results |
|
|
Summarize change from baseline values or absolute baseline values |
Summarize variables in columns |
|
Summarize Poisson negative binomial regression |
|
Multivariate logistic regression table |
|
Survival time analysis |
|
|
Survival time point analysis |
Tabulate biomarker effects on binary response by subgroup |
|
Tabulate binary response by subgroup |
|
Tabulate biomarker effects on survival by subgroup |
|
Tabulate survival duration by subgroup |
|
|
Difference test for two proportions |
Model-Specific FunctionsThese functions help with fitting or extracting results from specific models. |
|
Hazard ratio estimation in interactions |
|
Prepare response data estimates for multiple biomarkers in a single data frame |
|
Prepare response data for population subgroups in data frames |
|
Prepare survival data estimates for multiple biomarkers in a single data frame |
|
Prepare survival data for population subgroups in data frames |
|
Fitting functions for Cox proportional hazards regression |
|
Fit for logistic regression |
|
Subgroup treatment effect pattern (STEP) fit for binary (response) outcome |
|
Subgroup treatment effect pattern (STEP) fit for survival outcome |
|
Smooth function with optional grouping |
|
Logistic regression multivariate column layout function |
|
Logistic regression summary table |
|
Custom tidy method for binomial GLM results |
|
Custom tidy method for STEP results |
|
|
Custom tidy methods for Cox regression |
Univariate formula special term |
|
GraphsThese function create graphical type output. |
|
Bland-Altman plot |
|
Create a forest plot from an |
|
Individual patient plots |
|
Kaplan-Meier plot |
|
Line plot with optional table |
|
Create a STEP graph |
|
Horizontal waterfall plot |
|
Control FunctionsThese functions capture options in lists and take care of defaults (and checks where applicable). They avoid cluttering of function signatures with long lists of single arguments. |
|
Control function for descriptive statistics |
|
Control functions for Kaplan-Meier plot annotation tables |
|
Control function for Cox-PH model |
|
Control function for Cox regression |
|
Control function for incidence rate |
|
Control function for |
|
Control function for logistic regression model fitting |
|
Control function for risk difference column |
|
Control function for subgroup treatment effect pattern (STEP) calculations |
|
Control function for |
|
Control function for |
|
Analysis Helper FunctionsThese functions are useful in defining an analysis. |
|
|
Get default statistical methods and their associated formats, labels, and indent modifiers |
|
Cox regression helper function for interactions |
Format extreme values |
|
Helper function to prepare ADLB for |
|
Helper function to prepare ADLB with worst labs |
|
Helper function for deriving analysis datasets for select laboratory tables |
|
Helper function to return results of a linear model |
|
Helper function for |
|
Helper function for |
|
|
Helper functions for Cox proportional hazards regression |
|
|
Helper function to format the optional |
|
Helper function to create a KM plot |
|
Helper function to prepare a KM layout |
|
|
Helper functions for multivariate logistic regression |
Helper function to create a map data frame for |
|
Helper functions for odds ratio estimation |
|
Sort pharmacokinetic data by |
|
Function to return the estimated means using predicted probabilities |
|
|
Helper functions to calculate proportion difference |
|
Helper functions for calculating proportion confidence intervals |
|
Helper functions for tabulating biomarker effects on binary response by subgroup |
|
Helper functions for tabulating binary response by subgroup |
Split data frame by subgroups |
|
Split parameters |
|
Helper function to create a new SMQ variable in ADAE by stacking SMQ and/or CQ records. |
|
|
Helper functions for subgroup treatment effect pattern (STEP) calculations |
|
Helper functions for tabulating biomarker effects on survival by subgroup |
|
Helper functions for tabulating survival duration by subgroup |
Helper function for tabulation of a single biomarker result |
|
Helper function for generating a pairwise Cox-PH table |
|
Helper function for survival estimations |
|
Helper function to analyze patients for |
|
Apply 1/3 or 1/2 imputation rule to data |
|
Update labels according to control specifications |
|
rtables Helper FunctionsThese functions help to work with the |
|
Split function to configure risk difference column |
|
Layout-creating function to add row total counts |
|
Add variable labels to top left corner in table |
|
Default string replacement for |
|
Convert to |
|
Combine counts |
|
Reference and treatment group combination |
|
Combine factor levels |
|
Element-wise combination of two vectors |
|
Obtain column indices |
|
|
Helper functions for accessing information from |
Convert |
|
Split columns by groups of levels |
|
Convert table into matrix of strings |
|
Convert list of groups to a data frame |
|
Custom split functions |
|
rtables Formatting FunctionsThese functions provide customized formatting rules to work with the |
|
Format automatically using data significant digits |
|
Format count and fraction |
|
Format count and percentage with fixed single decimal place |
|
Format count and fraction with special case for count < 10 |
|
Format a single extreme value |
|
Format extreme values part of a confidence interval |
|
Format fraction and percentage |
|
Format fraction and percentage with fixed single decimal place |
|
Format fraction with lower threshold |
|
Format numeric values by significant figures |
|
Format XX as a formatting function |
|
rtables Scoring FunctionsThese functions can help with table sorting. |
|
|
Occurrence table sorting |
rtables Pruning FunctionsThese functions and classes help with flexible pruning of tables. |
|
|
Class for |
|
Occurrence table pruning |
Graph Helper FunctionsThese functions are useful to modify graphs. |
|
Add titles, footnotes, page Number, and a bounding box to a grid grob |
|
Split text according to available text width |
|
Update page number |
|
Decorate set of |
|
Helper function to create simple line plot over time |
|
Helper function to calculate x-tick positions |
|
Data Helper FunctionsThese functions are used by other functions to derive data. |
|
Labels for adverse event baskets |
|
Conversion of a vector to a factor |
|
Labels for bins in percent |
|
Combine factor levels |
|
Cut numeric vector into empirical quantile bins |
|
Conversion of days to months |
|
Encode categorical missing values in a data frame |
|
Description function for |
|
Description of cumulative count |
|
Description function that calculates labels for |
|
Description of standard oncology response |
|
Generate PK reference dataset |
|
Description of the proportion summary |
|
Description of method used for proportion comparison |
|
Labels for column variables in binary response by subgroup table |
|
Labels for column variables in survival duration by subgroup table |
|
Description of the difference test between two proportions |
|
Missing data |
|
Collapse factor levels and keep only those new group levels |
|
Discard specified levels of a factor |
|
Insertion of explicit missing values in a factor |
|
Utility function to create label for confidence interval |
|
Utility function to create label for p-value |
|
Helper function to tidy survival fit data |
|
Conversion of months to days |
|
Reapply variable labels |
|
Convert strings to |
|
Confidence interval for mean |
|
p-Value of the mean |
|
Confidence interval for median |
|
Proportion difference and confidence interval |
|
Helper function for the estimation of stratified quantiles |
|
Replicate entries of a vector if required |
|
Helper function for the estimation of weights for |
|
Assertion FunctionsThese functions supplement those in the |
|
|
Additional assertions to use with |
DataData included in the package. |
|
|
Simulated CDISC data for examples |
Deprecated FunctionsFunctions that are currently deprecated within |
|
Create a viewport tree for the forest plot |
|
|
|
Helper function to create a KM plot |
|
Helper function to create Cox-PH grobs |
|
Helper function to create survival estimation grobs |
|
Helper function to create patient-at-risk grobs |
|
Helper function to create grid object with y-axis annotation |
|
Helper function to prepare a KM layout |
|
Stack multiple grobs |
|
Arrange multiple grobs |
|
Draw |