Type: Package
Package: bsitar
Title: Bayesian Super Imposition by Translation and Rotation Growth
        Curve Analysis
Version: 0.4.0
Authors@R: 
    person("Satpal", "Sandhu", , "satpal.sandhu@bristol.ac.uk", 
           role = c("aut", "cre", "cph"),
           comment = c(ORCID = "0000-0002-8539-6897"))
Maintainer: Satpal Sandhu <satpal.sandhu@bristol.ac.uk>
Description: 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.
License: GPL-2
Depends: R (>= 3.6)
Imports: brms (>= 2.23.0), rstan (>= 2.32.7), loo (>= 2.10.1), dplyr
        (>= 1.2.1), rlang (>= 1.1.2), Rdpack (>= 2.6.6), insight (>=
        1.5.3), data.table (>= 1.18.6.1), collapse (>= 2.1.7),
        marginaleffects (>= 0.32.0), magrittr, methods, utils
Suggests: sitar (>= 1.5.0), ggplot2 (>= 4.0.3), tidybayes (>= 3.0.7),
        bayesplot (>= 1.16.0), posterior (>= 1.7.0), testthat (>=
        3.3.2), ggridges (>= 0.5.6), jtools (>= 2.3.0), splines2 (>=
        0.5.4), scales (>= 1.3.0), kableExtra (>= 1.4.0), knitr (>=
        1.51), future (>= 1.75.0), future.callr (>= 1.0.0),
        future.apply (>= 1.20.2), future.mirai (>= 1.0.0), mirai (>=
        2.7.2), doParallel (>= 1.0.17), foreach (>= 1.5.2), doFuture
        (>= 1.3.0), fastplyr (>= 0.9.92), cheapr (>= 1.5.1), dtplyr (>=
        1.3.3), checkmate (>= 2.3.3), installr (>= 0.23.4), bayestestR
        (>= 0.18.1), rmarkdown (>= 2.31.0), modelsummary (>= 2.6.0),
        performance (>= 0.17.1), reformulas (>= 0.4.4), growthcleanr
        (>= 2.2.3), R.rsp (>= 0.46.0), openxlsx2 (>= 1.29), priorsense
        (>= 1.2.0), distributional (>= 0.8.1), extraDistr (>=
        1.10.0.5), ggdist (>= 3.3.3), flextable (>= 0.10.0), flexlsx
        (>= 1.0.0), Hmisc, R.utils, parallel, MASS, Matrix, tidyr,
        nlme, purrr, forcats, patchwork, tibble, pracma, bookdown,
        spelling, boot, graphics, grDevices, abind, glue, stats
URL: https://github.com/Sandhu-SS/bsitar
BugReports: https://github.com/Sandhu-SS/bsitar/issues
Additional_repositories:
VignetteBuilder: knitr, R.rsp
RdMacros: Rdpack
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
LazyLoad: no
LazyDataCompression: xz
NeedsCompilation: no
RoxygenNote: 8.0.0
Language: en-US
Packaged: 2026-08-28 12:50:55 UTC; drsat
Author: Satpal Sandhu [aut, cre, cph] (ORCID:
    <https://orcid.org/0000-0002-8539-6897>)
Repository: CRAN
Date/Publication: 2026-08-28 15:40:08 UTC
Built: R 4.5.3; ; 2026-09-01 15:09:30 UTC; windows
