get_shape: Extract the shape parameters (low, up, k, and phi)

View source: R/extract.R

get_shapeR Documentation

Extract the shape parameters (low, up, k, and phi)

Description

Extract the shape parameters (low, up, k, and phi)

Usage

get_shape(
  fit,
  conf.int = TRUE,
  conf.level = 0.95,
  method = c("wald", "profile")
)

Arguments

fit

A profile_tls fit from fit_tls().

conf.int

Logical; include confidence-interval columns (default TRUE).

conf.level

Confidence level for the interval (default 0.95).

method

Either "wald" (default) or "profile".

Details

With method = "profile", a shape parameter receives a profile interval only where tidy_parameters() supports that coordinate; up and unsupported shape coordinates retain their documented Wald route. For continuous covariate designs, low, up, and k coefficients and Wald limits are returned on their link scale. Constant and cell-mean shapes remain on the response scale.

Value

A tibble of the shape rows (low, up, k, and phi for the beta-binomial family), including any covariate coefficients, from tidy_parameters().

Examples

d <- simulate_tls(family = "binomial", times = c(30, 60, 120, 240, 480),
                  CTmax = 36, z = 4, tref = 60, seed = 1)
fit <- fit_tls(d, y = survived, n = total, time = duration, temp = temp,
               family = "binomial", tref = 60)
get_shape(fit)

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