How this calculation works
Fit lognormal accelerated failure time regression to positive right-censored times. Estimate an intercept, covariate time ratios, residual log-time scale and model-based uncertainty.
log T=β₀+xβ+σε, ε∼N(0,1); ℓ=Σ[δ log f(T)+(1−δ) log S(T)]; time ratio=exp(β).A worked example
The 60 frozen times yield slope 0.451054, time ratio 1.569966 and residual log-time scale 0.592723.
Good to know
15–200 positive times; 1–3 predictors without an entered intercept; binary event status; more than p+3 events. Lognormal common-scale model only. Reject singular, unstable or nonconverged fits. Finite log-scale bounds −5 to 4 and coefficients ±30. No robust/cluster covariance.
Reference: R survival survreg reference (opens in a new tab) ↗
Model event time on the logarithmic scale
An accelerated failure time model describes the logarithm of a positive event time as a linear predictor plus a scaled error. Here the error is standard normal, so event times follow a lognormal distribution conditional on the predictors. This is a specific distributional assumption rather than a generic survival model.
The calculation estimates an intercept, one to three predictor coefficients and a positive residual log-time scale. It also reports exponentiated predictor coefficients as time ratios. A time ratio describes the relative timing of corresponding conditional distribution quantiles, provided the common-scale lognormal model adequately represents the data.
Compare this with the Cox proportional hazards regression calculator with right censoring. Fit log-time coefficients,time ratios and censored likelihood rather than proportional hazards.
Separate censoring from an observed event
For an observed event, the likelihood uses the lognormal density at the recorded time. For right censoring, it uses the probability that the unobserved event time exceeds that time. A censored observation therefore contributes information without being assigned an artificial event at the censoring date.
Enter status one for an observed event and zero for right censoring. The time and design rows must remain aligned, and all times must use the same origin and positive unit. Zero times cannot be logged; replacing them by a tiny arbitrary number changes the model and is not an automatic repair.
Let the calculator add the intercept
Predictor rows contain only the substantive covariates; the intercept is added internally. A binary variable should use an explicit numerical coding such as zero and one. A multi-category variable needs a chosen reference category and separate indicator columns, within the supported three-predictor limit.
The intercept is the expected log time at predictor zero. Exponentiating it gives the fitted median event time at that profile, not the arithmetic mean. Under the fitted distribution, the arithmetic mean additionally depends on the residual scale through the factor exp of one half the scale squared.
Translate a coefficient into time units
Suppose a coefficient is approximately 0.30 for a predictor measured in single units. Exponentiating gives about 1.35, meaning the fitted median and each other corresponding conditional quantile are about thirty-five percent longer after a one-unit increase. The actual fitted coefficient appears in the results.
The sixty prefilled observations contain a predictor with three levels and a mixture of observed and censored times. Their values were fixed as a reproducible example rather than as a clinical dataset. Refit after changing a row to see that both the timing effect and the estimated scale can respond.
Recognize what the lognormal assumption changes
A lognormal survival curve need not satisfy proportional hazards, so its coefficient should not be interpreted as a Cox hazard coefficient. The event hazard can change shape over follow-up, while a common time ratio remains the defining covariate relationship. These are different ways to summarize survival patterns.
A single residual scale also assumes the same spread of log time at each predictor setting. Heterogeneous dispersion, multiple latent populations or a misspecified distribution can distort the estimated time ratios. This page does not fit scale covariates, mixtures, competing risks or interval-censored observations.
Inspect numerical uncertainty with care
The finite search works with the logarithm of the scale to keep it positive. The final numerical score and observed curvature must support an interior local solution. Strong separation, too few events, redundant predictors or an almost zero residual scale can cause rejection instead of a completed estimate.
Reported standard errors are approximate model-based errors for the intercept, slopes and log scale, in that order. They rely on the fitted likelihood and independent observations. They are not cluster-robust errors, bootstrap intervals or evidence that the distributional assumptions have been checked against the original study design.
Keep a reproducible comparison
An independent calculation should match the lognormal location-scale parameterization, the automatically added intercept and the exact censoring indicators. Confusing log scale with scale, or comparing an arithmetic mean prediction with a median prediction, can produce apparently different answers from equivalent fitted models.
The calculator supports small educational analyses and explicit likelihood checks. It does not select an optimal survival distribution or certify individual forecasts. Retain the predictors, time units, censoring definition and fitted scale with any exported coefficient so another analyst can reconstruct the intended conditional distribution.
A few questions, answered
What does a time ratio mean?
It multiplies corresponding conditional time quantiles under the common-scale lognormal model.
Does zero status mean no lifetime event?
No. It means right censoring at the recorded time.
Why is exp(intercept) a median?
The normal log-time error has median zero; exponentiation gives the conditional median at predictor zero.
Which parameter uses the last standard error?
The final reported standard error belongs to log sigma, following the intercept and slopes.