preprocess_data: Data Processing for Bayesian Dynamic System Modeling...

Description Author(s)


preprocess_data is a core code in the bdynsys package to prepare the data for the bayesian dynamic system modeling. It is internally called in the main code bdynsys. It creates wide format matrixes for the indicators based on time and entity-id. It also reshapes the indicators into single columns ordered by time, computes the changes in the indicators at each timestep, reshapes them also into single colums ordered by time and stores them in variables. It furthermore removes missing values and scales the variables with their means. It returnes the processed variables to bdynsys and that way makes them availabe for usage in bdynsysdysymod and bdynsysbayesfac.It requires the package plm and matrixStats.


Viktoria Spaiser:

Search within the bdynsys package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.