transition_paths {ConvergenceClubs}R Documentation

Extract transition paths from a convergence.clubs object

Description

Given a convergence.clubs object (created by either findClubs or mergeClubs function), returns a list with transition paths for each club.

Usage

transition_paths(
  clubs,
  include_unit_names = TRUE,
  output_type = c("list", "data.frame")
)

Arguments

clubs

an object of class convergence.clubs (created by either function findClubs or mergeClubs).

include_unit_names

logical, if TRUE (the default) adds a column with unit names (only if present in the convergence.clubs object passed to clubs).

output_type

string indicating if the function should output a list or a data frame. Possible options are "list" and "data.frame", default is "list".

Value

If output_type=="list", a list of data frames, one for each club; each data frame will contain transition paths for the units in the correspondent club. If output_type=="data.frame", a data.frame.

References

Phillips, P. C.; Sul, D., 2007. Transition modeling and econometric convergence tests. Econometrica 75 (6), 1771-1855.

Phillips, P. C.; Sul, D., 2009. Economic transition and growth. Journal of Applied Econometrics 24 (7), 1153-1185.

See Also

findClubs, Finds Convergence Clubs; mergeClubs, Merges a list of clubs created by findClubs; plot.convergence.clubs, Plots transition paths from a convergence.clubs object.

Examples

data("filteredGDP")

# Cluster Countries using GDP from year 1970 to year 2003
clubs <- findClubs(filteredGDP, dataCols=2:35, unit_names = 1, refCol=35,
                   time_trim = 1/3, cstar = 0, HACmethod = "FQSB")

# Extract Transition Paths
tp <- transition_paths(clubs)
tp <- transition_paths(clubs, output_type = 'data.frame')






[Package ConvergenceClubs version 2.2.5 Index]