Tools for Reproducible Wellbeing and Survey Data Analysis

Tools for cross-national and longitudinal survey research with dedicated support for the Global Flourishing Study (GFS). Provides data preparation, documented missing-value recoding, country labels, personality scoring, survey design, retention analysis, country-specific regression, random-effects meta-analysis, longitudinal transformations, repeated-measures models and visualisation. Supports reproducible workflows using country-specific survey weights and unweighted mixed-effects models.


flourishR

R-CMD-check CRAN status

flourishR supports reproducible cross-national and longitudinal survey research, with dedicated tools for the Global Flourishing Study (GFS).

Installation

install.packages("flourishR")
# latest GitHub version
remotes::install_github("hilltaylor27/flourishR")

The workflow described here requires version 0.2.0. Until this version is available on CRAN, install it from GitHub. Optional packages survey, metafor and lme4 enable the corresponding statistical methods.

GFS workflow

library(flourishR)
gfs <- gfs_prepare("path/to/combined_gfs.csv", waves = 1:3)
gfs <- score_tipi(gfs)
retention <- check_retention(gfs, group = "COUNTRY")
plot_retention(retention, group = "COUNTRY")

Data preparation

label_to_factor(), recode_missing(), check_missingness(), gfs_dictionary(), gfs_countries(), gfs_prepare(), join_country_data().

Survey design and retention

gfs_weights(), gfs_design(), check_retention().

Cross-national analysis

describe_countries(), loop_countries(), country_moderation(), meta_countries().

Longitudinal analysis

create_lags(), change_scores(), within_between(), loop_longitudinal().

Visualisation

plot_cross_national(), plot_longitudinal(), plot_country_effects(), plot_retention(), plot_missingness().

Personality scoring

score_tipi().

See vignette("gfs-workflow", package = "flourishR") for a complete runnable synthetic-data example. GFS participant data are not distributed with this package. See https://www.cos.io/gfs-resources for study resources and access information.

Survey weights support within-country inference. Mixed-effects models are unweighted; country meta-analysis is not a population-weighted global estimate. Inspect model status, warnings and singularity before interpreting estimates.

Citation

To cite flourishR in publications:

citation("flourishR")

Hill, T. G. (2026). flourishR: Tools for Reproducible Wellbeing and Survey Data Analysis. https://doi.org/10.32614/CRAN.package.flourishR

License and support

flourishR is distributed under the MIT license.

Report bugs or suggest improvements through GitHub Issues.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("flourishR")

0.2.0 by Taylor G. Hill, 6 days ago


https://github.com/hilltaylor27/flourishR


Report a bug at https://github.com/hilltaylor27/flourishR/issues


Browse source code at https://github.com/cran/flourishR


Authors: Taylor G. Hill [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, ggplot2, haven, rlang

Suggests knitr, rmarkdown, lme4, metafor, survey, testthat


See at CRAN