## imported packages (with generics etc.)
import(
  "stats",
  "graphics",
  "psychotools",
  "party",
  "sandwich", 
  "strucchange"
)

importFrom("modeltools", "fit")
importFrom("modeltools", "dpp")
importFrom("modeltools", "ParseFormula")
importFrom("modeltools", "ModelEnvFormula")

export(
  ## Rasch tree tools
  "raschtree",
  "RaschModel",
  "node_raschplot",

  ## Bradley-Terry tree tools
  "bttree",
  "btReg",
  "node_btplot"
)

## methods for raschtree objects
S3method("coef", "raschtree")
S3method("logLik", "raschtree")
S3method("plot", "raschtree")
S3method("print", "raschtree")
S3method("sctest", "raschtree")
S3method("summary", "raschtree")
S3method("weights", "raschtree")
S3method("worth", "raschtree")

## methods for bttree objects
S3method("coef", "bttree")
S3method("deviance", "bttree")
S3method("logLik", "bttree")
S3method("plot", "bttree")
S3method("print", "bttree")
S3method("sctest", "bttree")
S3method("summary", "bttree")
S3method("weights", "bttree")
S3method("worth", "bttree")

## methods for RaschModel objects
S3method("bread", "RaschModel")
S3method("estfun", "RaschModel")
S3method("reweight", "RaschModel")

## methods for btReg objects
S3method("bread", "btReg")
S3method("estfun", "btReg")
S3method("reweight", "btReg")
