Functions to fit, predict and visualise the broken stick model.

brokenstick()

Fit a brokenstick model to irregular data

brokenstick

fitted(<brokenstick>)

Calculate fitted values

plot(<brokenstick>)

Plot observed and fitted trajectories by group

predict(<brokenstick>)

Predict from a brokenstick model

residuals(<brokenstick>)

Extract residuals from brokenstick model

Functions to set algorithmic options for model fitting or to extract components of the fitted object.

control_brokenstick()

Set controls to steer calculations

control_kr()

Set controls for Kasim-Raudenbush sampler

get_knots()

Obtain the knots from a broken stick model

get_r2()

Obtain proportion of explained variance from a broken stick model

parse_formula()

Parse formula for brokenstick model

Functions that perform the necessary calculations for the broken stick model. Not designed to be called directly.

EB()

Empirical Bayes predictor for random effects

kr()

Kasim-Raudenbush sampler for two-level normal model

make_basis()

Create linear splines basis

plot_trajectory()

Plot observed and fitted trajectories from fitted brokenstick model

Package-level documentation.

brokenstick-class

Class brokenstick

brokenstick-pkg

brokenstick: A package for irregular longitudinal data.

Documentation for built-in data objects

smocc_200

Infant growth of 0-2 years, SMOCC data extract

fit_200

Broken stick model with nine lines for 200 children

weightloss

Weight loss self-measurement data