Skip to main content

Multinomial Logistic Regression: How Did Federal Employees Leave in 2025?

Multinomial logistic regression in R with nnet::multinom(), on real OPM data: how about 330,000 US federal employees left their jobs in fiscal year 2025 (quit, retired, early retirement, deferred resignation, laid off, terminated), with relative risk ratios, predicted probabilities, the IIA assumption and APA reporting.

The question: six ways to leave

In 2025 the US federal government lost staff in several ways at once. In January, most federal employees were offered a deferred resignation: stop working, stay on the payroll until 30 September 2025, then resign. Agencies offered early retirement, carried out reductions in force (layoffs) and dismissed staff. And people kept quitting and retiring, as they do every year.

So everyone who left federal service in 2025 left in one of six ways. This page asks: among the people who left, what made one way of leaving more likely than another? Did the young quit and the old retire? Who took the deferred resignation? Who was laid off?

The outcome is a category with six values and no natural order: quitting is not “more” or “less” than being laid off. The type of outcome decides the type of regression:

Outcome Regression Example
Two categories logistic hired or not
Ordered categories ordinal logistic a performance rating from 1 to 5
Unordered categories multinomial logistic how someone left: quit, retired, laid off…

A multinomial logistic regression picks one category as the reference and fits a logistic regression of each of the other categories against it, all at the same time. The data are real: the US Office of Personnel Management (OPM) publishes a record for every federal employee who leaves.

Code
library(nnet)         # multinom(): multinomial logistic regression (comes with R)
library(nanoparquet)  # read_parquet(): reads the Parquet files that OPM publishes
library(ggplot2)

# one color per way of leaving, the same in every chart
exits   <- c("Quit", "Retired", "Early retirement", "Deferred resignation", "Laid off", "Terminated")
colours <- setNames(c("#2a78d6", "#eb6834", "#1baf7a", "#eda100", "#e87ba4", "#008300"), exits)
ink     <- setNames(c("white", "white", "white", "#0b0b0b", "white", "white"), exits)  # labels on the bars

# number formats for the text
f2   <- function(x) formatC(x, format = "f", digits = 2)
nz   <- function(x, d = 2) sub("^0", "", formatC(x, format = "f", digits = d))   # no leading zero
pval <- function(p) if (p < .001) "< .001" else paste("=", nz(p, 3))
pct  <- function(x, d = 0) paste0(formatC(100 * x, format = "f", digits = d), "%")
num  <- function(x) format(x, big.mark = ",")
rr   <- function(x) ifelse(x >= 100, formatC(x, format = "f", digits = 0, big.mark = ","),
                           formatC(x, format = "f", digits = 2))                   # relative risk ratios

1. The data

OPM’s Federal Workforce Data has a file for every month with one row per separation: a civilian employee leaving federal service. Each row says how the person left, their age group, years of service, agency, occupation, type of appointment and more. The files are free, need no login, and come through an API as Parquet files of one to four MB.

A monthly file holds the separations processed in that month, and some of them took effect months earlier: separations of September 2025 were still arriving in 2026. So we download every file from October 2023 to the latest one, and sort the separations by the date they took effect.

Code
options(timeout = max(300, getOption("timeout")))   # allow slow downloads

# the list of monthly files, with the current version of each
files <- jsonlite::fromJSON("https://data.opm.gov/api/v1/files/separations?current=true")
files <- files[as.integer(files$year) * 100 + as.integer(files$month) >= 202310, ]
latest <- max(as.Date(paste(files$year, files$month, "01", sep = "-")))

# the columns we need, out of the 69 in each file
columns <- c("personnel_action_effective_date_yyyymm", "separation_category", "drp_indicator",
             "age_bracket", "length_of_service_years", "supervisory_status",
             "appointment_type", "stem_occupation")

# one month: download the file and read the columns; try again if OPM asks us to slow down
read_month <- function(year, month, version) {
  url  <- sprintf("https://data.opm.gov/api/v1/files/separations/%s/%s/%s/download", year, month, version)
  path <- tempfile(fileext = ".parquet")
  for (attempt in 1:3) {
    ok <- tryCatch(download.file(url, path, mode = "wb", quiet = TRUE) == 0, error = function(e) FALSE)
    if (ok) break
    Sys.sleep(10 * attempt)
  }
  if (!ok) stop("Could not download ", url)
  as.data.frame(read_parquet(path, col_select = columns))
}

raw <- do.call(rbind, Map(read_month, files$year, files$month, files$version))
nrow(raw)
[1] 808769

That is 36 monthly files, up to September 2026. The US federal fiscal year runs from October to September: fiscal year 2025 (FY2025) is October 2024 to September 2025. We keep FY2024, a year before the changes, and FY2025:

Code
ym <- as.integer(raw$personnel_action_effective_date_yyyymm)   # e.g. 202509 = September 2025
raw$month       <- as.Date(sprintf("%d-%02d-01", ym %/% 100, ym %% 100))
raw$fiscal_year <- ym %/% 100 + (ym %% 100 >= 10)              # October 2024 to September 2025 = 2025

d <- subset(raw, fiscal_year %in% 2024:2025)
table(d$separation_category, d$fiscal_year)
                                    
                                       2024   2025
  OTHER SEPARATION                    16296  17123
  QUIT                                81772 159332
  REDUCTION IN FORCE (RIF)               33  10417
  RETIREMENT - EARLY OUT                206  20916
  RETIREMENT - OTHER                   3644   5249
  RETIREMENT - VOLUNTARY              55567 102490
  TERMINATION (EXPIRED APPT/OTHER)    32141  37372
  TRANSFER OUT - INDIVIDUAL TRANSFER  33003  16288
  TRANSFER OUT - MASS TRANSFER          169     84

OPM records how each separation was processed. A separate column, drp_indicator, says whether it came under the deferred resignation program (Y):

Code
with(subset(d, fiscal_year == 2025), table(separation_category, drp_indicator))
                                    drp_indicator
separation_category                      N     Y
  OTHER SEPARATION                   17069    54
  QUIT                               94970 64362
  REDUCTION IN FORCE (RIF)           10416     1
  RETIREMENT - EARLY OUT              8525 12391
  RETIREMENT - OTHER                  5173    76
  RETIREMENT - VOLUNTARY             69798 32692
  TERMINATION (EXPIRED APPT/OTHER)   36907   465
  TRANSFER OUT - INDIVIDUAL TRANSFER 16259    29
  TRANSFER OUT - MASS TRANSFER          83     1

On paper, most people who took the deferred resignation quit or retired. But they took a different route from people who quit or retired in the ordinary way, so we give them a category of their own. The six ways of leaving:

Way of leaving OPM category What it means
Quit QUIT Resigned
Retired RETIREMENT - VOLUNTARY, RETIREMENT - OTHER Retired on a pension
Early retirement RETIREMENT - EARLY OUT Took the agency’s offer of an early pension: age 50 with 20 years of service, or any age with 25 years
Deferred resignation any of the above with drp_indicator = Y Accepted the 2025 offer; most left on 30 September 2025
Laid off REDUCTION IN FORCE (RIF) The position was abolished
Terminated TERMINATION (EXPIRED APPT/OTHER) A temporary appointment ended, or the agency ended the employment, for example during the probationary period

We leave out transfers to another agency (those people are still federal employees) and “other separation”, which includes deaths.

Code
exit <- c("QUIT"                             = "Quit",
          "RETIREMENT - VOLUNTARY"           = "Retired",
          "RETIREMENT - OTHER"               = "Retired",
          "RETIREMENT - EARLY OUT"           = "Early retirement",
          "REDUCTION IN FORCE (RIF)"         = "Laid off",
          "TERMINATION (EXPIRED APPT/OTHER)" = "Terminated")[d$separation_category]
exit[!is.na(exit) & d$drp_indicator %in% "Y"] <- "Deferred resignation"
d$exit <- factor(exit, levels = exits)
d <- subset(d, !is.na(exit))     # drops the transfers and the other separations

The predictors are five characteristics of each person. Years of service are cut where the rules change: the first year is usually a probationary period, early retirement needs 20 or 25 years, and a full pension needs, for example, 30 years from age 55 to 57 or 20 years at age 60.

Code
age <- ifelse(d$age_bracket %in% c("LESS THAN 20", "20-24"), "Under 25",
       ifelse(d$age_bracket == "65 OR MORE", "65+", d$age_bracket))
d$age <- factor(age, levels = c("Under 25", "25-29", "30-34", "35-39", "40-44", "45-49",
                                "50-54", "55-59", "60-64", "65+"))

years <- suppressWarnings(as.numeric(d$length_of_service_years))
years[years > 60] <- NA          # a few impossible values (up to 1,800 years of service)
d$service <- cut(years, c(-Inf, 1, 5, 10, 20, 25, 30, Inf), right = FALSE,
                 labels = c("Under 1", "1-4", "5-9", "10-19", "20-24", "25-29", "30+"))

# supervisors and managers; team leaders count as non-supervisors
supervisors  <- c("SUPERVISOR OR MANAGER", "SUPERVISOR (CSRA)", "MANAGEMENT OFFICIAL (CSRA)")
d$supervisor <- factor(ifelse(d$supervisory_status == "INVALID", NA,
                              ifelse(d$supervisory_status %in% supervisors, "Yes", "No")),
                       levels = c("No", "Yes"))

# a permanent or a temporary (nonpermanent) appointment
d$permanent <- factor(ifelse(d$appointment_type == "INVALID", NA,
                             ifelse(grepl("NONPERMANENT", d$appointment_type), "No", "Yes")),
                      levels = c("Yes", "No"))

# STEM, health or other occupations; "UNSPECIFIED" becomes NA
d$occupation <- factor(c("ALL OTHER OCCUPATIONS" = "Other", "STEM OCCUPATIONS" = "STEM",
                         "HEALTH OCCUPATIONS" = "Health")[d$stem_occupation],
                       levels = c("Other", "STEM", "Health"))

vars <- c("exit", "age", "service", "supervisor", "permanent", "occupation")
d    <- d[complete.cases(d[vars]), ]
fy25 <- subset(d, fiscal_year == 2025)
table(d$fiscal_year)

  2024   2025 
172225 329911 

Each row is a separation, not a person: someone who left two temporary jobs in a year is in the data twice. We still call them people, for short.


2. Look at the data

Code
monthly <- as.data.frame(table(month = d$month, exit = d$exit), responseName = "people")
monthly$month <- as.Date(as.character(monthly$month))

ggplot(monthly, aes(month, people, fill = exit)) +
  geom_col(width = 25) +
  geom_vline(xintercept = as.Date("2024-09-16"), linetype = "dashed", colour = "grey40") +
  facet_wrap(~ exit, ncol = 2, scales = "free_y") +
  scale_fill_manual(values = colours, guide = "none") +
  scale_y_continuous(labels = scales::comma) +
  scale_x_date(date_breaks = "6 months", date_labels = "%b %Y") +
  labs(title = "Federal employees leaving each month, by how they left",
       subtitle = "October 2023 to September 2025; each panel has its own scale.\nDashed line: the start of fiscal year 2025.",
       x = NULL, y = "people") +
  theme_bw()

Monthly – 2. Look at the data

Code
drp_september <- sum(fy25$exit == "Deferred resignation" & fy25$month == as.Date("2025-09-01"))
# terminations of people with under five years of service, February to May
new_terminated <- with(subset(d, exit == "Terminated" & service %in% c("Under 1", "1-4") &
                                 format(month, "%m") %in% c("02", "03", "04", "05")),
                       table(fiscal_year))
new_terminated
fiscal_year
 2024  2025 
 4541 10163 

In FY2024, left of the dashed line, people quit, retired or came to the end of a temporary job. Retirements peak every December, and terminations every autumn, when seasonal jobs end. FY2025 is different:

  • Deferred resignations: 106,795 took effect in September 2025 alone, when the paid leave ended.
  • Early retirements and layoffs, almost absent in FY2024, start in spring 2025.
  • Terminations of people with under five years of service rose from 4,541 in February to May 2024 to 10,163 in the same months of 2025, when agencies dismissed many employees who were still in their probationary period.
Code
counts <- table(d$exit, d$fiscal_year)
data.frame(exit   = exits,
           FY2024 = num(as.vector(counts[, "2024"])),
           FY2025 = num(as.vector(counts[, "2025"])),
           FY2025_share = pct(as.vector(prop.table(counts[, "2025"])), 1))
                  exit FY2024  FY2025 FY2025_share
1                 Quit 81,304  93,341        28.3%
2              Retired 58,643  70,988        21.5%
3     Early retirement    206   8,523         2.6%
4 Deferred resignation      0 109,938        33.3%
5             Laid off     31  10,374         3.1%
6           Terminated 32,041  36,747        11.1%
Code
top_exit <- names(which.max(counts[, "2025"]))

In FY2025, 329,911 people left in these six ways, 1.9 times as many as in FY2024, and the most common way to leave was the deferred resignation. From here on we use FY2025. Who left which way?

Code
# stacked bars of shares (each bar adds up to 100%), with the larger shares labeled
stacked <- function(m, y_label, x_label) {
  ggplot(m, aes(share, group, fill = exit)) +
    geom_col(width = 0.8, colour = "white", linewidth = 0.3, position = position_stack(reverse = TRUE)) +
    geom_text(aes(label = ifelse(share >= 0.07, pct(share), ""), colour = exit),
              position = position_stack(vjust = 0.5, reverse = TRUE), size = 3, show.legend = FALSE) +
    scale_fill_manual(values = colours) +
    scale_colour_manual(values = ink, guide = "none") +
    scale_x_continuous(labels = scales::percent, expand = c(0, 0)) +
    scale_y_discrete(limits = rev) +
    labs(x = x_label, y = y_label, fill = NULL) +
    theme_bw() +
    theme(legend.position = "bottom", plot.margin = margin(5.5, 18, 5.5, 5.5)) +  # room for "100%"
    guides(fill = guide_legend(nrow = 2))
}

# how the people in each group left, in FY2025
mix <- function(group, label) {
  m <- as.data.frame(prop.table(table(group = fy25[[group]], exit = fy25$exit), 1), responseName = "share")
  stacked(m, label, "share of the people in the group who left in FY2025")
}
mix("age", "age")

Mix – 2. Look at the data

Code
mix("service", "years of service")

Mix service – 2. Look at the data

Code
share      <- function(group) prop.table(table(fy25[[group]], fy25$exit), 1)
by_age     <- share("age")
by_service <- share("service")
by_job     <- share("occupation")
middle     <- c("30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64")
  • Quitting is the usual way out up to age 45; from 50 on, people retire.
  • Early retirement happens at 50 to 59 and with 20 to 29 years of service: the eligibility rules.
  • The deferred resignation is the odd one: between 32% and 38% of the people in every age group from 30 to 64 took it, and a similar share at every length of service from one year up. Ordinary quitting and retiring each belong to one end of a career; the deferred resignation drew from all of it.
  • Layoffs hit the middle of careers: 8.7% of the people aged 45 to 49 who left, 7.6% of those with 10 to 19 years of service.
  • Terminations belong to the young and the new: 36% of the people under 25 and 35% of those with less than a year of service.
  • Occupations differ too: only 4.5% of the people in health occupations took the deferred resignation, against 45% in STEM and 34% in other occupations. Agencies could exclude positions from the offer.

Age and years of service go together, so these charts cannot tell whether age or service drives an exit. The model can: it estimates each effect holding the others constant.


3. The model step by step, with formulas

Step 1: a reference category

Choose one way of leaving as the yardstick. We use Quit, an ordinary resignation: every other way of leaving is compared with quitting. Any category could be the reference; the predicted probabilities are the same, only the comparisons in the output change. In R the reference is the first level of the factor (levels(fy25$exit)[1] is Quit), and relevel() changes it.

Step 2: one equation for every other category

For person \(i\) and each way of leaving \(k\) other than quitting:

\[\eta_{ik} = \ln\frac{P(\text{exit}_i = k)}{P(\text{exit}_i = \text{Quit})} = \beta_{0k} + \beta_{1k}x_{1i} + \dots + \beta_{pk}x_{pi}\]

That is five equations, each with its own intercept and its own slopes. The left side is the log of the relative risk: how much more likely leaving by \(k\) is than quitting. Each equation looks like a logistic regression; the difference is that the five are estimated together, so that every person’s six probabilities add up to 1.

Step 3: from the equations to probabilities

\[P(\text{exit}_i = \text{Quit}) = \frac{1}{1 + \sum_{j} e^{\eta_{ij}}} \qquad P(\text{exit}_i = k) = \frac{e^{\eta_{ik}}}{1 + \sum_{j} e^{\eta_{ij}}}\]

The sums run over the five categories other than Quit. Each probability is between 0 and 1, and the six add up to 1. This is the softmax function, the same formula that neural networks use to classify.

Step 4: what a coefficient means

\(e^{\beta}\) is the relative risk ratio (RRR): the number by which the ratio \(P(k)/P(\text{Quit})\) is multiplied when the predictor moves from its reference level to this level, with the other predictors held constant. An RRR of 2 means twice as likely to leave by \(k\) rather than by quitting. Some books and programs call it an odds ratio; either way it compares two categories with each other, not one category with all the others.

Step 5: how R finds the β’s

By maximum likelihood: R looks for the \(\beta\)’s that make the exits that people actually took as probable as possible,

\[\ln L = \sum_i \ln P(\text{exit}_i = \text{the exit that person } i \text{ took})\]

multinom() maximizes it. It fits the model as a neural network without a hidden layer, which is why it lives in the package nnet.

Step 6: count the parameters

A predictor with \(c\) categories gets \(c - 1\) coefficients: age has 10 groups (9 coefficients), service 7 (6), supervisor and appointment 2 each (1 each) and occupation 3 (2). That is 19 slopes plus an intercept, 20 per equation, and 5 equations make 100 parameters. Multinomial models grow fast: every category needs enough people for a whole set of coefficients of its own.


4. Fitting the model

Every predictor is a category, so the 329,911 people fall into a limited number of combinations of age group, service, supervisor, appointment, occupation and exit. Fitting the model to the count of people in each combination gives the same estimates as fitting the people one by one: 300 people with the same values add the same term to the log-likelihood 300 times, which is what weights = Freq does. It takes a second instead of minutes.

Code
g <- as.data.frame(table(fy25[vars]))   # one row per combination; Freq = the number of people
g <- subset(g, Freq > 0)
nrow(g)
[1] 2416
Code
fit <- multinom(exit ~ age + service + supervisor + permanent + occupation,
                data = g, weights = Freq, maxit = 1000, trace = FALSE, Hess = TRUE)
summary(fit)
Call:
multinom(formula = exit ~ age + service + supervisor + permanent + 
    occupation, data = g, weights = Freq, Hess = TRUE, maxit = 1000, 
    trace = FALSE)

Coefficients:
                     (Intercept)   age25-29    age30-34   age35-39   age40-44   age45-49     age50-54   age55-59  age60-64    age65+ service1-4 service5-9 service10-19 service20-24 service25-29 service30+ supervisorYes permanentNo occupationSTEM occupationHealth
Retired                -8.304799 -0.1027746  0.23467518  0.8311791  1.3946939  2.4604048  3.711774888 4.64736827 6.0358064 6.1661410  0.2071897  3.4198730    4.1953108    5.5445061     6.508084   6.721914   -0.09634591  -1.8336098      0.3123144       0.08735039
Early retirement      -13.706923  2.1855712  0.47576987  0.1296681  4.4168506  6.3020617  7.808215425 8.11484607 6.2228897 6.0975426 -0.6808828  1.5564553    3.1478513    6.9335455     8.056644   7.206188   -0.31039566  -1.6907065      0.6848224       0.06575100
Deferred resignation   -1.621271  0.3805304  0.34990055  0.3593320  0.3859383  0.4419419  0.613598223 0.98625328 1.7890346 1.6604305  1.1776627  1.1005969    1.4181172    2.6084620     3.524287   3.549384   -0.10425815  -1.1662624      0.6273989      -2.48004200
Laid off               -5.282090  1.0278733  1.60216105  1.7804322  2.0091246  2.2410378  2.014764954 1.85762922 1.4970488 0.1868293  0.9189700  1.3823347    2.2484308    2.6218913     2.225188   1.995264    0.39639759  -0.4418581      0.3438229      -0.02269487
Terminated             -2.422627  0.1068515 -0.05525335 -0.2252644 -0.2427164 -0.1635098 -0.004385491 0.07526328 0.4978969 0.8159176 -0.4534688 -0.5583806   -0.3357472    0.4053187     1.526026   1.817553   -0.58607489   3.1087643      0.1887964       0.13942081

Std. Errors:
                     (Intercept)   age25-29   age30-34   age35-39   age40-44   age45-49   age50-54   age55-59   age60-64     age65+ service1-4 service5-9 service10-19 service20-24 service25-29 service30+ supervisorYes permanentNo occupationSTEM occupationHealth
Retired               0.69979434 0.75977125 0.71527974 0.70328064 0.70033292 0.69893215 0.69836454 0.69827579 0.69830559 0.69833417 0.11680622 0.09926105   0.09838890   0.10140853   0.10869687 0.10502679    0.02117836  0.03570033     0.01999054       0.02984312
Early retirement      0.66359968 2.48161898 3.72629598 2.94217872 0.62148516 0.59595199 0.59441289 0.59441424 0.59662532 0.59760731 0.50374549 0.38445023   0.35624080   0.35128991   0.35338817 0.35281411    0.03218183  0.12672558     0.03423943       0.06404482
Deferred resignation  0.02583035 0.02735390 0.02696340 0.02700036 0.02748048 0.02856579 0.02936056 0.03002148 0.03214428 0.03271557 0.01695677 0.01949683   0.02063181   0.03273187   0.05071885 0.04347240    0.01825170  0.01732437     0.01429446       0.03401009
Laid off              0.12509128 0.13116361 0.12538262 0.12425902 0.12396922 0.12423758 0.12564620 0.12737444 0.13322128 0.15749176 0.04841514 0.05016911   0.04931115   0.06444020   0.09894673 0.10097382    0.02951446  0.03829589     0.03018232       0.03508501
Terminated            0.02512630 0.02689991 0.02859778 0.03058868 0.03254564 0.03526170 0.03637498 0.03729732 0.03980910 0.03555180 0.01774537 0.02762041   0.03305969   0.05980097   0.07517707 0.05614673    0.03476091  0.01795522     0.02358010       0.02719333

Residual Deviance: 638894.9 
AIC: 639094.9 

maxit = 1000 lets the estimation run longer than the default 100 steps, trace = FALSE hides the log of the steps, and Hess = TRUE keeps what summary() needs for the standard errors.

How to read the output

Code
s    <- summary(fit)
b    <- coef(fit)                      # one row per way of leaving, one column per term
se   <- s$standard.errors
z    <- b / se
p    <- 2 * pnorm(-abs(z))             # summary() prints no p values: compute them
rrr  <- exp(b)                         # relative risk ratios
low  <- exp(b - qnorm(0.975) * se)     # their 95% confidence intervals
high <- exp(b + qnorm(0.975) * se)
Part Meaning Here
Coefficients One row per way of leaving, compared with Quit; one column per predictor level. Each number is \(b\): the change in the log relative risk Row Laid off, column supervisorYes: b = 0.40
Std. Errors The standard error of each \(b\); smaller is more precise 0.03
Residual Deviance \(-2 \ln L\): how badly the model fits; smaller is better. Used for the tests in section 6 638,895
AIC The deviance plus 2 for every parameter, for comparing models fitted to the same data 639,095
  • There are no p values. Compute them as above: \(z = b / SE\), and \(p\) from the normal distribution. For supervisorYes in the row Laid off, z = 13.43, p < .001.
  • The intercepts are the log relative risks of the reference person: under 25, less than a year of service, not a supervisor, on a permanent appointment, in an occupation that is neither STEM nor health.
  • Huge numbers, such as an RRR of 3,344 for early retirement at ages 55 to 59, mean that the reference group almost never leaves that way: nobody under 25 can retire early. They are common with categorical predictors and say little on their own; the predicted probabilities of section 5 are easier to read.
  • Every coefficient compares with Quit. supervisorYes in the row Laid off says nothing about being laid off rather than retiring. For that comparison, subtract the two rows, b(Laid off) − b(Retired), or change the reference with relevel() and fit again.

The relative risk ratios of the three predictors that are not age or service:

Code
terms <- c(supervisorYes = "Supervisor", permanentNo = "Temporary appointment",
           occupationSTEM = "STEM occupation", occupationHealth = "Health occupation")
cell  <- function(k, t) paste0(f2(rrr[k, t]), " [", f2(low[k, t]), ", ", f2(high[k, t]), "]")
rrr_table <- data.frame(Predictor = terms,
                        sapply(rownames(b), function(k) sapply(names(terms), function(t) cell(k, t))),
                        check.names = FALSE, row.names = NULL)
knitr::kable(rrr_table, align = "lrrrrr")
Predictor Retired Early retirement Deferred resignation Laid off Terminated
Supervisor 0.91 [0.87, 0.95] 0.73 [0.69, 0.78] 0.90 [0.87, 0.93] 1.49 [1.40, 1.57] 0.56 [0.52, 0.60]
Temporary appointment 0.16 [0.15, 0.17] 0.18 [0.14, 0.24] 0.31 [0.30, 0.32] 0.64 [0.60, 0.69] 22.39 [21.62, 23.20]
STEM occupation 1.37 [1.31, 1.42] 1.98 [1.85, 2.12] 1.87 [1.82, 1.93] 1.41 [1.33, 1.50] 1.21 [1.15, 1.26]
Health occupation 1.09 [1.03, 1.16] 1.07 [0.94, 1.21] 0.08 [0.08, 0.09] 0.98 [0.91, 1.05] 1.15 [1.09, 1.21]

Each cell is the RRR with its 95% confidence interval, against quitting:

  • Supervisors were 1.49 times as likely as non-supervisors to be laid off rather than to quit, at the same age, service, appointment and occupation.
  • Temporary appointments were 22.39 times as likely to end in a termination rather than a resignation: a temporary job usually ends by itself.
  • Health occupations had a 92% lower relative risk of the deferred resignation rather than quitting (RRR = 0.08).

The same numbers by hand

Steps 2 and 3 for one person, aged 55 to 59 with 25 to 29 years of service, and the reference level of everything else:

Code
eta  <- b[, "(Intercept)"] + b[, "age55-59"] + b[, "service25-29"]   # step 2: one eta per way of leaving
prob <- c(Quit = 1, exp(eta)) / (1 + sum(exp(eta)))                   # step 3
round(prob, 3)
                Quit              Retired     Early retirement Deferred resignation             Laid off           Terminated 
               0.021                0.355                0.241                0.369                0.006                0.009 
Code
# new people for predict(), with the factor levels of the model
people <- function(...) {
  x <- data.frame(...)
  for (v in names(x)) x[[v]] <- factor(x[[v]], levels = levels(g[[v]]))
  x
}
someone <- people(age = "55-59", service = "25-29", supervisor = "No", permanent = "Yes", occupation = "Other")
round(predict(fit, newdata = someone, type = "probs"), 3)              # the same, from R
                Quit              Retired     Early retirement Deferred resignation             Laid off           Terminated 
               0.021                0.355                0.241                0.369                0.006                0.009 

For this person the two most likely ways of leaving were Deferred resignation (37%) and Retired (35%).


5. Predicted probabilities: the easiest way to read the model

A relative risk ratio compares two exits; a predicted probability says how likely each exit is for a given kind of person. Six typical people, along a career:

Code
career <- people(age        = c("25-29", "25-29", "35-39", "45-49", "55-59", "60-64"),
                 service    = c("1-4",   "1-4",   "10-19", "20-24", "25-29", "30+"),
                 supervisor = "No",
                 permanent  = c("Yes",   "No",    "Yes",   "Yes",   "Yes",   "Yes"),
                 occupation = "Other")
label <- c("25-29, 1-4 years", "25-29, 1-4 years, temporary", "35-39, 10-19 years",
           "45-49, 20-24 years", "55-59, 25-29 years", "60-64, 30+ years")
probs <- predict(fit, newdata = career, type = "probs")

m <- data.frame(group = factor(rep(label, ncol(probs)), levels = label),
                exit  = factor(rep(colnames(probs), each = nrow(probs)), levels = exits),
                share = as.vector(probs))
stacked(m, "age, years of service", "predicted probability of each way of leaving, FY2025")

Profiles – 5. Predicted probabilities: the easiest way to read the model

Code
rownames(probs) <- label
  • Early in a career (25 to 29, one to four years) people quit or took the deferred resignation: 49% and 46%.
  • The same person on a temporary appointment was most likely terminated (52%): the appointment ran out.
  • In mid-career the risk of being laid off was at its highest: 11% at 35 to 39 with 10 to 19 years of service, 9% at 45 to 49 with 20 to 24 years.
  • With 25 to 29 years of service at 55 to 59, early retirement became a real option (24%), next to an ordinary retirement (35%) and the deferred resignation (37%).
  • At 60 to 64 with 30 years or more, people mostly retired (66%).

These are probabilities for a person who left. They do not say how likely such a person was to leave at all: the data hold only the people who left.


6. Testing the predictors and the model

The likelihood-ratio test compares the deviances of two nested models. First the whole model against a model with no predictors, then each predictor: fit the model without it and see how much worse it gets.

Code
null <- multinom(exit ~ 1, data = g, weights = Freq, trace = FALSE)
model_test <- anova(null, fit)
model_test
                                                Model Resid. df Resid. Dev   Test    Df LR stat. Pr(Chi)
1                                                   1     12075   990841.8           NA       NA      NA
2 age + service + supervisor + permanent + occupation     11980   638894.9 1 vs 2    95 351946.9       0
Code
tests <- do.call(rbind, lapply(c("age", "service", "supervisor", "permanent", "occupation"), function(v) {
  a <- anova(update(fit, as.formula(paste(". ~ . -", v))), fit)
  data.frame(predictor = v, chi_square = round(a$"LR stat."[2], 1), df = a$"   Df"[2],
             p = format.pval(a$"Pr(Chi)"[2], eps = 0.001))
}))
tests
   predictor chi_square df       p
1        age    55481.1 45 < 0.001
2    service    55065.8 30 < 0.001
3 supervisor      664.2  5 < 0.001
4  permanent    68523.4  5 < 0.001
5 occupation    15478.5 10 < 0.001
Code
mcfadden <- 1 - deviance(fit) / deviance(null)   # McFadden's pseudo-R squared
mcfadden
[1] 0.3551999
Code
ranked <- unname(c(age = "age", service = "years of service", supervisor = "supervisor status",
                   permanent = "appointment type", occupation = "occupation")[tests$predictor[order(-tests$chi_square)]])
  • Every predictor is significant: with 329,911 people even a tiny effect is. The \(\chi^2\) values show which predictors matter most: appointment type, age and years of service; supervisor status matters least. The degrees of freedom are the coefficients a predictor adds to all five equations: 9 age groups × 5 = 45.
  • McFadden’s pseudo-\(R^2\) = 0.36: one minus the deviance of the model divided by the deviance of the model with no predictors. It is not a share of explained variance and it runs much lower than the \(R^2\) of a linear regression; use it to compare models fitted to the same data.

How often does the model name the right exit, if it picks the most likely one for each person?

Code
predicted <- factor(colnames(fitted(fit))[max.col(fitted(fit), ties.method = "first")], levels = exits)
accuracy  <- weighted.mean(predicted == g$exit, g$Freq)
base_rate <- max(prop.table(table(fy25$exit)))   # always guessing the most common exit
c(model = accuracy, most_common_exit = base_rate)
           model most_common_exit 
       0.5502969        0.3332353 
Code
# how each exit was classified: % of the row
round(100 * prop.table(xtabs(Freq ~ exit + predicted, data = cbind(g, predicted)), 1))
                      predicted
exit                   Quit Retired Early retirement Deferred resignation Laid off Terminated
  Quit                   57       1                0                   24        0         18
  Retired                 1      79                0                   19        0          1
  Early retirement        0      21                1                   77        0          1
  Deferred resignation   29      28                0                   39        0          5
  Laid off               35       4                0                   54        0          7
  Terminated             14       1                0                    5        0         81

The model names the right exit for 55% of the people, against 33% for always guessing the most common one. But it almost never predicts an early retirement or a layoff, even though it knows who is most at risk of them: these exits are rare, so for almost nobody are they the most likely one. Accuracy is a poor guide when some categories are rare, as Logistic Regression With a Rare Outcome shows; the predicted probabilities carry the information.


7. An assumption to check: independence of irrelevant alternatives

The model assumes that the ratio of two probabilities, for example \(P(\text{Retired}) / P(\text{Quit})\), does not depend on what other ways of leaving there are: the independence of irrelevant alternatives (IIA). The textbook example: a city adds a blue bus identical to its red bus. IIA predicts that the blue bus takes passengers from cars and from the red bus in proportion; in reality it takes them almost only from the red bus.

The deferred resignation was a new way of leaving in 2025. Under IIA it drew people from the other exits in proportion. A simple check: fit the model again without it, that is without the category and without the people who took it, and compare the coefficients that remain. If IIA holds, they hardly change.

Code
g2   <- droplevels(subset(g, exit != "Deferred resignation"))
fit2 <- update(fit, data = g2)

show <- c("age55-59", "age60-64", "service25-29", "service30+", "supervisorYes", "permanentNo")
iia  <- expand.grid(term = show, exit = rownames(coef(fit2)), stringsAsFactors = FALSE)
iia$all_six   <- exp(coef(fit)[cbind(iia$exit, iia$term)])
iia$without   <- exp(coef(fit2)[cbind(iia$exit, iia$term)])
knitr::kable(data.frame(exit = iia$exit, term = iia$term, rr(iia$all_six), rr(iia$without)),
             col.names = c("Way of leaving (against Quit)", "Term", "RRR, six exits",
                           "RRR without the deferred resignation"), align = "llrr")
Way of leaving (against Quit) Term RRR, six exits RRR without the deferred resignation
Retired age55-59 104 46.59
Retired age60-64 418 372
Retired service25-29 671 1,980
Retired service30+ 830 1,632
Retired supervisorYes 0.91 1.11
Retired permanentNo 0.16 0.04
Early retirement age55-59 3,344 17,447
Early retirement age60-64 504 4,676
Early retirement service25-29 3,155 4,549
Early retirement service30+ 1,348 1,071
Early retirement supervisorYes 0.73 0.76
Early retirement permanentNo 0.18 0.08
Laid off age55-59 6.41 7.17
Laid off age60-64 4.47 6.61
Laid off service25-29 9.26 8.21
Laid off service30+ 7.35 6.03
Laid off supervisorYes 1.49 1.51
Laid off permanentNo 0.64 0.64
Terminated age55-59 1.08 1.18
Terminated age60-64 1.65 1.47
Terminated service25-29 4.60 3.58
Terminated service30+ 6.16 3.75
Terminated supervisorYes 0.56 0.54
Terminated permanentNo 22.39 21.34
Code
moved <- function(k) median(abs(log(iia$without / iia$all_six))[iia$exit == k])   # typical change, log scale

The coefficients of retirement and early retirement move a lot: for 25 to 29 years of service, the RRR of retiring rather than quitting goes from 671 to 1,980. Those of layoffs and terminations move much less (a typical change of 12% and 11%, against 110% for retirement). So IIA is doubtful for the exits that are close to the deferred resignation. Models that relax it, the nested logit (similar exits share a “nest”) and the mixed logit, are in the package mlogit (Croissant, 2020). The formal version of this check, the Hausman–McFadden test (mlogit::hmftest()), would flag even trivial differences with this many people; the size of the changes tells more.

Three more things to keep in mind:

  • People in the same agency are not independent. Layoffs and early-retirement offers were decided agency by agency, so the standard errors above are too small. Agency as a predictor, or a multilevel multinomial model, would take this into account.
  • Only people who left. The model compares ways of leaving among the people who left; it says nothing about the people who stayed. Whether supervisors were more likely to leave at all needs the employment files too, which OPM also publishes.
  • The data keep changing. OPM calls the newest data preliminary, and late reports keep arriving: run this page again in a few months and the counts will be a little higher.

8. Reporting the results in APA style

A report (APA 7th edition) needs the outcome and its reference category, the predictors, the model test and the relative risk ratios with their uncertainty. The numbers come from the R objects, so the text below always matches the results:

Code
n_model <- sum(g$Freq)
lr      <- model_test$"LR stat."[2]
lr_df   <- model_test$"   Df"[2]
lr_p    <- model_test$"Pr(Chi)"[2]
ci      <- function(k, t) paste0("95% CI [", f2(low[k, t]), ", ", f2(high[k, t]), "]")
# the cells of Table 1 whose p is .001 or more, for the note under it
big_p   <- which(p[, names(terms)] >= .001, arr.ind = TRUE)
p_note  <- if (nrow(big_p) == 0) "All *p* < .001." else
  paste0("All *p* < .001 except ", paste0(terms[colnames(p[, names(terms)])[big_p[, "col"]]], ", ",
         tolower(rownames(p)[big_p[, "row"]]), ": *p* ", sapply(p[, names(terms)][big_p], pval),
         collapse = "; "), ".")

Method (data analysis):

We analyzed the 329,911 separations from the US federal civil service that took effect in fiscal year 2025 (October 2024 to September 2025), as recorded in the Federal Workforce Data of the U.S. Office of Personnel Management (2026), excluding transfers between agencies, other separations and records with missing predictors. The way of leaving (quit, retirement, early retirement, deferred resignation, reduction in force, termination) was analyzed with a multinomial logistic regression, with quitting as the reference category and age group, years of service, supervisory status, appointment type (permanent or temporary) and occupation group (STEM, health, other) as predictors. Analyses were conducted in R (Version 4.6.2; R Core Team, 2026) with the nnet package (Venables & Ripley, 2002).

Results:

The predictors improved the fit over an intercept-only model, χ²(95) = 351,947, p < .001, McFadden’s R² = .36. Holding the other predictors constant, supervisors were more likely than non-supervisors to be laid off rather than to quit, RRR = 1.49, 95% CI [1.40, 1.57], employees on temporary appointments were more likely to be terminated rather than to quit, RRR = 22.39, 95% CI [21.62, 23.20], and employees in health occupations were less likely to take the deferred resignation rather than to quit, RRR = 0.08, 95% CI [0.08, 0.09] (Table 1). Compared with employees with less than a year of service, those with 25 to 29 years were more likely to take the deferred resignation rather than to quit, RRR = 33.93, 95% CI [30.72, 37.48].

Table 1

Relative Risk Ratios From a Multinomial Logistic Regression of the Way of Leaving Federal Service, FY2025

Predictor Retired Early retirement Deferred resignation Laid off Terminated
Supervisor 0.91 [0.87, 0.95] 0.73 [0.69, 0.78] 0.90 [0.87, 0.93] 1.49 [1.40, 1.57] 0.56 [0.52, 0.60]
Temporary appointment 0.16 [0.15, 0.17] 0.18 [0.14, 0.24] 0.31 [0.30, 0.32] 0.64 [0.60, 0.69] 22.39 [21.62, 23.20]
STEM occupation 1.37 [1.31, 1.42] 1.98 [1.85, 2.12] 1.87 [1.82, 1.93] 1.41 [1.33, 1.50] 1.21 [1.15, 1.26]
Health occupation 1.09 [1.03, 1.16] 1.07 [0.94, 1.21] 0.08 [0.08, 0.09] 0.98 [0.91, 1.05] 1.15 [1.09, 1.21]

Note. N = 329,911. Reference category: quit. Each cell is the relative risk ratio [95% confidence interval] of leaving in the way named in the column rather than quitting. The model also includes age group and years of service. All p < .001 except Health occupation, retired: p = .003; Health occupation, early retirement: p = .305; Health occupation, laid off: p = .518.

Points to remember:

  • Name the reference category: every coefficient compares with it.
  • Report relative risk ratios with 95% confidence intervals, and say that they hold the other predictors constant.
  • Give the model test (\(\chi^2\) with its degrees of freedom) and a pseudo-\(R^2\), and say which one.
  • With hundreds of thousands of people every p is tiny: report the size of the effects, and predicted probabilities where they help.
  • Say which categories you merged or left out, and why.
  • Cite R and the packages; citation("nnet") gives the reference.

9. Summary

When The outcome is a category with three or more values and no order
Why not separate logistic regressions Their probabilities do not add up to 1, and there is no single test of a predictor
Why not ordinal logistic regression The categories have no order
How (R) nnet::multinom(y ~ x, data); with counts per combination of values, weights = n
Output One equation per category against the reference; exp() of a coefficient is a relative risk ratio
Easiest to read Predicted probabilities: predict(fit, newdata, type = "probs")
Tests Likelihood-ratio tests with anova(); McFadden’s pseudo-\(R^2\)
Assumptions Independent observations; independence of irrelevant alternatives; enough people in every category for its own set of coefficients
If IIA fails A nested or mixed logit, with mlogit

References

Agresti, A. (2013). Categorical data analysis (3rd ed.). Wiley.

Croissant, Y. (2020). Estimation of random utility models in R: The mlogit package. Journal of Statistical Software, 95(11), 1–41. https://doi.org/10.18637/jss.v095.i11

Csárdi, G., & Mühleisen, H. (2026). nanoparquet: Read and write ‘Parquet’ files (R package version 0.5.2). https://github.com/r-lib/nanoparquet

Hausman, J., & McFadden, D. (1984). Specification tests for the multinomial logit model. Econometrica, 52(5), 1219–1240.

McFadden, D. (1974). Conditional logit analysis of qualitative choice behavior. In P. Zarembka (Ed.), Frontiers in econometrics (pp. 105–142). Academic Press.

U.S. Office of Personnel Management. (2026). Federal Workforce Data: Separations [Data set]. https://data.opm.gov/

Venables, W. N., & Ripley, B. D. (2002). Modern applied statistics with S (4th ed.). Springer.