data.info: Show Basic Structure of Panel Dataset.

View source: R/pdynmc_exploratory.R

data.infoR Documentation

Show Basic Structure of Panel Dataset.

Description

data.info shows basic structure of a balanced/unbalanced panel dataset contained in a 'data.frame'.

Usage

data.info(object, i.name = NULL, t.name = NULL, ...)

Arguments

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.

Value

Returns information if panel dataset contained in an object of class 'data.frame' is a balanced or unbalanced panel dataset.

Author(s)

Markus Fritsch, Joachim Schnurbus

See Also

pdynmc for fitting a linear dynamic panel data model.

Examples

## 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")



pdynmc documentation built on Sept. 12, 2024, 7:42 a.m.