Learn R Programming

SetMethods (version 2.1)

cluster.diagnostics: Diagnostic tool for clustered data.

Description

Function returns pooled, within, and between consistencies and coverages for the relationship between two sets.

Usage

cluster.diagnostics(x, y, unit, cluster, necessity= FALSE)

Arguments

x

A vector containing the condition.

y

A vector containing the outcome.

unit

A vector containing the names of the units (i.e. countries).

cluster

A vector containing the names of the clustering unit (i.e. years).

necessity

Logical. Perform the diagnostic for the relationship of necessity?

References

Garcia-Castro, A., Arino, M. A.. 2013. A General Approach to Panel Data Set-Theoretic Research. COMPASSS Working Paper 2013-76

See Also

eqmcc

Examples

Run this code
# NOT RUN {
# Import your clustered data in the long format. 
# For example:

data(SchneiderLong)

# Get pooled, within, and between consistencies and coverages 
# for STOCK as necessary for EXPORT:


cluster.diagnostics(SchneiderLong$STOCK, SchneiderLong$EXPORT, unit = SchneiderLong$COUNTRY, 
                    cluster = SchneiderLong$YEAR, necessity= TRUE)

# }

Run the code above in your browser using DataLab