View source: R/pdynmc_exploratory.R
data.info | R Documentation |
data.info
shows basic structure of a balanced/unbalanced
panel dataset contained in a 'data.frame'.
data.info(object, i.name = NULL, t.name = NULL, ...)
object |
An object of class 'data.frame'. |
i.name |
Column name of cross-section identifier. |
t.name |
Column name of time-series identifier. |
... |
further arguments. |
Returns information if panel dataset contained in an object of class 'data.frame' is a balanced or unbalanced panel dataset.
Markus Fritsch, Joachim Schnurbus
pdynmc
for fitting a linear dynamic panel data model.
## Load data
data(ABdata, package = "pdynmc")
dat <- ABdata
dat[,c(4:7)] <- log(dat[,c(4:7)])
dat <- dat[c(1:140), ]
## Code example
data.info(dat, i.name = "firm", t.name = "year")
data.info(dat[dat$year %in% 1979:1981, ], i.name = "firm", t.name = "year")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.