ranef: Random-effect BLUPs (conditional modes) for a freqTLS fit

ranefR Documentation

Random-effect BLUPs (conditional modes) for a freqTLS fit

Description

ranef() returns the predicted random intercepts (the conditional modes / BLUPs) with their conditional standard errors, for a fit with a random intercept on any of CTmax, log_z, low, or log_k (⁠<param> ~ <fixed> + (1 | group)⁠). It errors for a fixed-effects-only fit. Each BLUP is a deviation on its coordinate's internal scale: CTmax in degrees C, log_z on log(z), low on logit(low), log_k on log(k). When several REs are present the rows are stacked in CTmax, log_z, low, log_k order.

Usage

ranef(object, ...)

## S3 method for class 'profile_tls'
ranef(object, ...)

Arguments

object

A profile_tls fit from fit_tls() with a random intercept.

...

Reserved; must be empty.

Value

A tibble with one row per group level (per RE term): group, term ("CTmax", "log_z", "low", or "log_k"), estimate (the BLUP), and std.error (the conditional SE).

Examples

d <- simulate_tls(family = "binomial", CTmax = 36, z = 4,
                  times = c(30, 60, 120, 240, 480), tref = 60,
                  re_sd = 1.5, n_re_groups = 12, seed = 42)
fit <- fit_tls(
  tls_bf(survived | trials(total) ~ time(duration) + temp(temp),
         CTmax ~ 1 + (1 | colony)),
  data = d, family = "binomial", tref = 60)
ranef(fit)

freqTLS documentation built on Dec. 4, 2026, 5:11 p.m.