Skip to main content

Statistical Thinking

Posts

Statistical Models Answer the Fundamental Clinical Question and Provide Clinical Trial Estimands

design
drug-development
drug-evaluation
evidence
generalizability
hypothesis-testing
inference
medicine
ordinal
personalized-medicine
prediction
RCT
regression
subgroup
variability
2026

The Unifying Capabilities of Cumulative Probability Semiparametric Models

data-science
hypothesis-testing
inference
ordinal
prediction
regression
survival-analysis
teaching
2026

Measures of Central Tendency for an Asymmetric Distribution, and Confidence Intervals

bootstrap
computing
inference
r
2025

There are three widely applicable measures of central tendency for general continuous distributions: the mean, median, and pseudomedian (the mode is useful for describing smooth theoretical distributions but not so useful when attempting to estimate the mode empirically). Each measure has its own advantages and disadvantages, and the usual confidence intervals for the mean may be very inaccurate when the distribution is very asymmetric. The central limit theorem may be of no help. In this article I discuss tradeoffs of the three location measures and describe why the pseudomedian is perhaps the overall winner due to its combination of robustness, efficiency, and having an accurate confidence interval. I study CI coverage of 18 procedures for the mean, one exact and one approximate procedure for the median, and five procedures for the pseudomedian, for samples of size \(n=200\) drawn from a lognormal distribution. Various bootstrap procedures are included in the study. The goal of the confidence interval procedures is to achieve non-coverage probabilities that are close to the nominal 0.025 level in both tails. The usual standard deviation-based central limit theorem approach failed in both tails. The BCa bootstrap method was the most accurate for computing confidence limits for the mean, but the upper limit was too small with \(n=200\), having non-coverage probability of 0.086 for the right tail instead of the nominal 0.025. No other bootstrap variants, including the fast triple studentized bootstrap, measureably improved confidence coverage. Three types of intervals for the more robust pseudomedian were extremely accurate, giving more reasons to use the pseudomedian as a primary location measure, whether or not the distribution is symmetric.

Statistical Errors in the Medical Literature

prediction
logic
p-value
validation
bayes
evidence
subgroup
dichotomization
medicine
inference
change-scores
RCT
personalized-medicine
responder-analysis
hypothesis-testing
medical-literature
2017

Clinicians’ Misunderstanding of Probabilities Makes Them Like Backwards Probabilities Such As Sensitivity, Specificity, and Type I Error

specificity
probability
backward-probability
forward-probability
p-value
bayes
conditioning
diagnosis
decision-making
dichotomization
medicine
bioinformatics
biomarker
sensitivity
posterior
accuracy-score
classification
2017
No matching items

Talks

Rare Degenerative Diseases & Statistics:
Methods for Analyzing Composite Patient Outcomes

endpoints
RCT
ordinal
regression
2024
bayes
design
measurement
posterior
principles
responder-analysis
sample-size
survival-analysis

In this talk I’ll explain why statistical power is maximized by analyzing the rawest form of clinical trial outcome data, as opposed to analyzing patients at a single time point or reducing rich longitudinal data to time-to-event outcomes. Analyzing all the data longitudinally also provides a formal way to handle missing or partially missing data. A highly flexible longitudinal model will be described in non-mathematical terms. This model is a longitudinal proportional odds logistic model for binary, ordinal, or continuous outcomes, with within-patient serial correlation handled through a simple Markov process in which the patient’s previous visit outcome level becomes a predictor for the outcome in the current time period. This is a discrete time state transition model, also called a multistate model, but extended to have an unlimited number of outcome states as long as they can be ordered.

The model may be fitted with standard software, and special Bayesian modeling software has been written for it.

After the model is fitted, a simple multiplication process converts the transition probabilities into current state probabilities (state occupancy probabilities) to form an intent-to-treat effect that reduces to cumulative incidence of an outcome event if the outcome is binary. The approach accommodates longitudinal outcome scales with clinical event overrides. The primary clinical readout of this longitudinal ordinal model is the average time in condition y or worse, as a function of time and treatment, for any or all outcome levels y.

This approach has the following as special cases:

- Wilcoxon test for comparing two groups on a single-time ordinal or continuous outcome
- Cox proportional hazards model for comparing time-to-event when the event is terminal
- Parametric longitudinal analysis of continuous outcomes
- Recurrent event analysis
- Joint analysis of recurrent nonfatal events and a terminal event
- Estimation of restricted mean survival time when the event is not necessarily terminal

The model also provides the only formal analysis I know for quantifying evidence that a treatment effects different components of the outcome variable differently. For example, one can test whether a treatment lowers mortality by the same relative amount as it lowers disability. The model is particularly well suited for rare degenerative diseases because of formal handling of death, and because its maximum use of information lowers the sample size needed to achieve adequate power, particularly when there are several follow-up visits.

The method will be briefly compared with time-to-event analysis, DOOR (desirability of outcome ranking), and WIN ratio/odds.

A detailed case study of longitudinal ordinal modeling with complete R code may be found at hbiostat.org/rmsc/markov.

Sequential Bayesian Designs for Rapid Learning in COVID-19 Clinical Trials

bayes
RCT
covid-19

R for Clinical Trial Reporting

r
RCT
reporting

Statisticians and statistical programmers spend a great deal of time analyzing data and producing reports for clinical trials, both for final trial reports and for interim reports for data monitoring committees. Point and Click interfaces and copy-and-paste are now believed to be bad models for reproducible research. Instead, there are advantages to developing a high-level language for producing common elements of reports related to accrual, exclusions, descriptive statistics, adverse events, time to event, and longitudinal data.

It is well appreciated in the statistical and graphics design communities that graphics are much better than tables for conveying numeric information. There are thus advantages for having statistical reports for clinical trials that are almost completely graphical. Instead of devoting space to tables, HTML5 and Javascript in R html reports makes it easy to show tabular information in pop-up text when hovering the mouse over a graphical element.

In this talk I will describe R packages greport (using a \(\LaTeX\) pdf model) and hreport (using an html model). knitr and Rmarkdown are used to compose the reproducible reports. greport and hreport compose all figure and table captions. They contain high-level abstractions of common clinical trial reporting tasks to minimize programming by the use. Before showing examples of these report-making packages, I’ll show some of the new graphical building blocks in the Hmisc and rms packages. These new functions make use of the plotly package to create interactive graphics using Javascript and D3.

Regression Modeling Strategies

prediction
validation
accuracy-score
machine-learning
regression

Using R, Rmarkdown, RStudio, knitr, plotly, and HTML for the Next Generation of Reproducible Statistical Reports

r
reporting
reproducible

The Vanderbilt Department of Biostatistics has two policies currently in effect:
1. All statistical reports will be reproducible
2. All reports should include all the code used to produce the report, in some fashion

We have succeeded with 1. (mainly using knitr in R) and to a large extent with 2. Some biostatisticians have been concerned about interspersing code with the contents of the report. It has also been challenging to copy some PDF report components (e.g., advanced tables) into word processing documents.

Fortunately R and RStudio have recently added a number of new features that allow for easy creation of HTML notebooks that are viewed with any web browser. This solves the problems listed above and adds new possibilities such as interactive graphics that appear in a self-contained HTML file to post on a collaboration web server or send to a collaborator. Interactive graphics allow the analyst to create more detail (e.g., confidence bands for multiple confidence levels; confidence bands for group differences as well as those for each group individually) with the collaborator able to easily select which details to view.

I have made major revisions in the R Hmisc and rms packages to provide new capabilities that fit into the R/RStudio Rmarkdown HTML notebook framework. Interactive plotly graphics (based on Javascript and D3) and customized HTML output are the main new ingredients. In this talk the rationale for this approach is discussed, and the new features are demonstrated with two statistical reports. A few miscellaneous topics will also be covered, e.g. how to cite bibliographic references in Rmarkdown and how to interface R to citeulike.org for viewing or extracting bibliographic references.

For more information see

https://www.r-project.org
https://www.rstudio.com
http://rmarkdown.rstudio.com
http://rmarkdown.rstudio.com/r_notebooks.html
http://yihui.name/knitr
https://hbiostat.org/R/Hmisc
https://plot.ly/r
https://plot.ly/r/getting-started
ggplotly: a function that converts any ggplot2 graphic to a plotly interactive graphic: https://plot.ly/ggplot2

Exploratory Analysis of Clinical Safety Data to Detect Safety Signals

RCT
safety
drug-evaluation

It is difficult to design a clinical study to provide sound inferences about safety effects of drugs in addition to providing trustworthy evidence for efficacy. Patient entry criteria and experimental design are targeted at efficacy, and there are too many possible safety endpoints to be able to control type I error while preserving power. Safety analysis tends to be somewhat ad hoc and exploratory. But with the large quantity of safety data acquired during clinical drug testing, safety data are rarely harvested to their fullest potential. Also, decisions are sometimes made that result in analyses that are somewhat arbitrary or that lose statistical efficiency. For example, safety assessments can be too quick to rely on the proportion of patients in each treatment group at each clinic visit who have a lab measurement above two or three times the upper limit of normal.

Safety reports frequently fail to fully explore areas such as
• which types of patients are having AEs?
• what distortions in the tails of the distribution of lab values are taking place?
• which AEs tend to occur in the same patient?
• how to clinical AEs correlate to continuous lab measurements at a given time
• which AEs and lab abnormalities are uniquely related to treatment assigned?
• do preclinically significant measurements at an earlier visit predict AEs at a later visit?
• how can time trends in many variables be digested into an understandable picture?

This talk will demonstrate some of the exploratory statistical and graphical methods that can help answer questions such as the above, using examples based on data from real pharmaceutical trials.

No matching items

Courses