Package: panelr 0.8.0.9000

panelr: Regression Models and Utilities for Repeated Measures and Panel Data

Provides an object type and associated tools for storing and wrangling panel data. Implements several methods for creating regression models that take advantage of the unique aspects of panel data. Among other capabilities, automates the "within-between" (also known as "between-within" and "hybrid") panel regression specification that combines the desirable aspects of both fixed effects and random effects econometric models and fits them as multilevel models (Allison, 2009 <doi:10.4135/9781412993869.d33>; Bell & Jones, 2015 <doi:10.1017/psrm.2014.7>). These models can also be estimated via generalized estimating equations (GEE; McNeish, 2019 <doi:10.1080/00273171.2019.1602504>) and Bayesian estimation is (optionally) supported via 'Stan'. Supports estimation of asymmetric effects models via first differences (Allison, 2019 <doi:10.1177/2378023119826441>) as well as a generalized linear model extension thereof using GEE.

Authors:Jacob A. Long [aut, cre]

panelr_0.8.0.9000.tar.gz
panelr_0.8.0.9000.zip(r-4.5)panelr_0.8.0.9000.zip(r-4.4)panelr_0.8.0.9000.zip(r-4.3)
panelr_0.8.0.9000.tgz(r-4.4-any)panelr_0.8.0.9000.tgz(r-4.3-any)
panelr_0.8.0.9000.tar.gz(r-4.5-noble)panelr_0.8.0.9000.tar.gz(r-4.4-noble)
panelr_0.8.0.9000.tgz(r-4.4-emscripten)panelr_0.8.0.9000.tgz(r-4.3-emscripten)
panelr.pdf |panelr.html
panelr/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/jacob-long/panelr/issues

Datasets:
  • WageData - Earnings data from the Panel Study of Income Dynamics
  • nlsy - National Longitudinal Survey of Youth data
  • teen_poverty - National Longitudinal Survey of Youth teenage women poverty data

On CRAN:

social-sciencestatistics

27 exports 97 stars 4.22 score 62 dependencies 1 dependents 142 scripts 1.5k downloads

Last updated 8 months agofrom:2bac1b5a39. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 28 2024
R-4.5-winNOTEAug 28 2024
R-4.5-linuxNOTEAug 28 2024
R-4.4-winNOTEAug 28 2024
R-4.4-macNOTEAug 28 2024
R-4.3-winNOTEAug 28 2024
R-4.3-macNOTEAug 28 2024

Exports:%<>%%>%are_varyingas_panelas_panel_dataas_pdata.frameasymasym_geecomplete_datafdmfilterget_idget_periodsget_waveheiseis_panelline_plotlong_panelmake_diff_datamake_wb_datamodel_framepanel_dataunpanelwbgeewbmwbm_stanwiden_panel

Dependencies:backportsbootbroombroom.mixedclicodacodetoolscolorspacecpp11crayondigestdplyrfansifarverforcatsFormulafurrrfuturegenericsggplot2globalsgluegtableisobandjtoolslabelinglatticelifecyclelistenvlme4lmerTestmagrittrMASSMatrixmgcvminqamunsellnlmenloptrnumDerivpanderparallellypillarpkgconfigpurrrR6RColorBrewerRcppRcppEigenrlangsandwichscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithrzoo

Introduction to the panelr package

Rendered fromwbm.Rmdusingknitr::rmarkdownon Aug 28 2024.

Last update: 2023-08-21
Started: 2019-04-29

Reshaping panel data with long_panel() and widen_panel()

Rendered fromreshape.Rmdusingknitr::rmarkdownon Aug 28 2024.

Last update: 2023-02-06
Started: 2019-03-11

Readme and manuals

Help Manual

Help pageTopics
Check if variables are constant or variable over time.are_varying
Estimate asymmetric effects models using first differencesasym
Asymmetric effects models fit with GEEasym_gee
Filter out entities with too few observationscomplete_data
Estimate first differences models using GLSfdm
Retrieve model formulas from 'wbm' objectsformula.wbm
Retrieve panel_data metadataget_id get_periods get_wave
Estimate Heise stability and reliability coefficientsheise
Check if object is panel_datais_panel
Plot trends in longitudinal variablesline_plot
Convert wide panels to long formatlong_panel
Generate differenced and asymmetric effects datamake_diff_data
Prepare data for within-between modelingmake_wb_data
Make model frames for panel_data objectsmodel_frame
National Longitudinal Survey of Youth datanlsy
Number of observations used in 'wbm' modelsnobs.wbm
Create panel data framesas_panel as_panel_data as_panel_data.default as_panel_data.pdata.frame as_pdata.frame panel_data
Predictions and simulations from within-between GEE modelspredict.wbgee
Predictions and simulations from within-between modelspredict.wbm simulate.wbm
Summarize panel data framessummary.panel_data
National Longitudinal Survey of Youth teenage women poverty datateen_poverty
Tidy methods for 'fdm' and 'asym' modelsglance.fdm tidy.asym tidy.fdm
Tidy methods for 'wbgee' modelsglance.wbgee tidy.asym_gee tidy.wbgee
Tidy methods for 'wbm' modelsglance.summ.wbm glance.wbm tidy.summ.wbm tidy.wbm
Convert panel_data to regular data frameunpanel
Earnings data from the Panel Study of Income DynamicsWageData
Panel regression models fit with GEEwbgee
Panel regression models fit via multilevel modelingwbm
Bayesian estimation of within-between modelswbm_stan
Within-Between Model ('wbm') classwbm-class
Convert long panel data to wide formatwiden_panel