Package: bsitar 0.3.3.982

bsitar: Bayesian Super Imposition by Translation and Rotation Growth Curve Analysis

The Super Imposition by Translation and Rotation (SITAR) model is a shape-invariant nonlinear mixed effect model that fits a natural cubic spline mean curve to the growth data and aligns individual-specific growth curves to the underlying mean curve via a set of random effects (see Cole, 2010 <doi:10.1093/ije/dyq115> for details). The non-Bayesian version of the SITAR model can be fit by using the already available R package 'sitar'. Unlike the 'sitar' package which allows modelling of a single outcome only, the 'bsitar' package offers great flexibility in fitting models of varying complexities, including joint modelling of multiple outcomes such as height and weight (multivariate model). Additionally, the 'bsitar' package allows for the simultaneous analysis of an outcome separately for subgroups defined by a factor variable such as gender. This is achieved by fitting separate models for each subgroup (for example males and females for gender variable). An advantage of this approach is that posterior draws for each subgroup are part of a single model object, making it possible to compare coefficients across subgroups and test hypotheses. Since the 'bsitar' package is a front-end to the R package 'brms', it offers excellent support for post-processing of posterior draws via various functions that are directly available from the 'brms' package. In addition, the 'bsitar' package includes various customized functions that allow for the visualization of distance (increase in size with age) and velocity (change in growth rate as a function of age), as well as the estimation of growth spurt parameters such as age at peak growth velocity and peak growth velocity.

Authors:Satpal Sandhu [aut, cre, cph]

bsitar_0.3.3.982.tar.gz
bsitar_0.3.3.982.zip(r-4.7)bsitar_0.3.3.982.zip(r-4.6)bsitar_0.3.3.982.zip(r-4.5)
bsitar_0.3.3.982.tgz(r-4.6-any)bsitar_0.3.3.982.tgz(r-4.5-any)
bsitar_0.3.3.982.tar.gz(r-4.7-any)bsitar_0.3.3.982.tar.gz(r-4.6-any)
bsitar_0.3.3.982.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
bsitar/json (API)
NEWS

# Install 'bsitar' in R:
install.packages('bsitar', repos = c('https://sandhu-ss.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sandhu-ss/bsitar/issues

Datasets:
  • berkeley - Berkeley Child Guidance Study Data
  • berkeley_exdata - Berkeley Child Guidance Study Data for Females
  • berkeley_exfit - Model Fit to the Berkeley Child Guidance Study Data for Females

On CRAN:

Conda:

5.59 score 4 scripts 567 downloads 29 exports 89 dependencies

Last updated from:66b38de1ae. Checks:7 NOTE, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64NOTE461
source / vignettesOK438
linux-release-x86_64NOTE493
macos-release-arm64NOTE358
macos-oldrel-arm64NOTE400
windows-develNOTE441
windows-releaseNOTE495
windows-oldrelNOTE402
wasm-releaseOK202

Exports:%>%add_model_criterionbsitarcompare_modelcompare_modelsexpose_model_functionsfitted_drawsget_comparisonsget_gpget_growthparametersget_predictionsgetNsObjectgrowthparametersgrowthparameters_comparisonhypothesis_testis.bgmfitloo_validationmarginal_comparisonmarginal_comparisonsmarginal_drawsmarginal_growthparametersmodelbased_growthparametersoptimize_modelplot_conditional_effectsplot_curvesplot_diagnosticsplot_ppcpredict_drawsupdate_model

Dependencies:abindbackportsbayesplotBHbridgesamplingbrmsBrobdingnagcallrcheckmateclicodacodetoolscollapsecpp11data.tabledescdigestdistributionaldplyrfarverforcatsFormulafurrrfuturefuture.applygenericsggplot2ggridgesglobalsgluegridExtragtableinlineinsightisobandlabelinglatticelifecyclelistenvloomagrittrmarginaleffectsMatrixmatrixStatsmgcvmvtnormnleqslvnlmenumDerivparallellypillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreshape2rlangrsamplerstanrstantoolsS7scalessitarslidersplines2StanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewarpwithr

Bayesian SITAR model - An introduction

Rendered fromBayesian_SITAR_model_An_Introduction.Rmdusingknitr::rmarkdownon Jun 05 2026.

Last update: 2026-06-05
Started: 2024-02-04

Bayesian SITAR model fit

Rendered fromBayesian_SITAR_model_fit.Rmdusingknitr::rmarkdownon Jun 05 2026.

Last update: 2026-06-05
Started: 2025-01-30

Readme and manuals

Help Manual

Help pageTopics
Add fit criteria to the Bayesian SITAR Modeladd_model_criterion add_model_criterion.bgmfit
Berkeley Child Guidance Study Databerkeley
Berkeley Child Guidance Study Data for Femalesberkeley_exdata
Model Fit to the Berkeley Child Guidance Study Data for Femalesberkeley_exfit
Fit Bayesian SITAR Modelbsitar
Model comparison with the loo packagecompare_model compare_models compare_models.bgmfit
Expose user-defined Stan functions for the Bayesian SITAR modelexpose_model_functions expose_model_functions.bgmfit
Estimate fitted (Expected) values for the Bayesian SITAR modelfitted_draws fitted_draws.bgmfit
Estimate and compare growth curves for the Bayesian SITAR modelget_comparisons get_comparisons.bgmfit marginal_comparison marginal_comparisons
Estimate and compare growth parameters for the Bayesian SITAR modelget_gp get_growthparameters get_growthparameters.bgmfit growthparameters_comparison marginal_growthparameters
Estimate and plot growth curves for the Bayesian SITAR modelget_predictions get_predictions.bgmfit marginal_draws
Retrieve Bayesian SITAR model object if it existsgetNsObject
Estimate growth parameters for the Bayesian SITAR modelgrowthparameters growthparameters.bgmfit
Comprehensive hypothesis testing framework for the Bayesian SITAR modelhypothesis_test hypothesis_test.bgmfit
Checks if object is of class 'bgmfit'is.bgmfit
Leave-one-out (LOO) cross-validation for the Bayesian SITAR modelloo_validation loo_validation.bgmfit
Estimate model-based growth parameters for the Bayesian SITAR modelmodelbased_growthparameters modelbased_growthparameters.bgmfit
Optimize Bayesian SITAR Modeloptimize_model optimize_model.bgmfit
Visualize conditional effects for the Bayesian SITAR modelplot_conditional_effects plot_conditional_effects.bgmfit
Plot growth curves for the Bayesian SITAR modelplot_curves plot_curves.bgmfit
Diagnostic plots for Bayesian SITAR modelsplot_diagnostics plot_diagnostics.bgmfit
Perform posterior predictive checks for the Bayesian SITAR modelplot_ppc plot_ppc.bgmfit
Estimate predicted values for the Bayesian SITAR modelpredict_draws predict_draws.bgmfit
Update the Bayesian SITAR modelupdate_model update_model.bgmfit