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

8.81 score 99 stars 1 packages 207 scripts 2.1k downloads 27 exports 62 dependencies

Last updated 11 months agofrom:2bac1b5a39. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-winOKOct 27 2024
R-4.5-linuxOKOct 27 2024
R-4.4-winNOTEOct 27 2024
R-4.4-macNOTEOct 27 2024
R-4.3-winNOTEOct 27 2024
R-4.3-macNOTEOct 27 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 Oct 27 2024.

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

Reshaping panel data with long_panel() and widen_panel()

Rendered fromreshape.Rmdusingknitr::rmarkdownon Oct 27 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