| print.PSTR | R Documentation |
Print method for objects of class "PSTR".
x |
An object of class |
... |
Further arguments passed to the underlying print routine. See Arguments below. |
The print output is organised into four sections:
"summary"Data summary: panel dimensions, dependent variable, linear/non-linear regressors, transition variables.
"tests"Specification tests: linearity (homogeneity) tests and the sequence of homogeneity tests (optionally with WB/WCB p-values if available).
"estimates"Estimation results: coefficient estimates with standard errors and t-ratios, printed in chunks to fit the console width.
"evaluation"Evaluation tests: parameter constancy and no-remaining-nonlinearity tests (optionally with WB/WCB p-values if available).
In addition to calling print(x, ...), the same functionality is available
as an R6 method via x$print(...).
Invisibly returns x.
The following arguments are supported (they are forwarded to the R6 method x$print()):
formatCharacter. Output format passed to knitr::kable() (for example "simple", "pipe", "latex"). Default is "simple".
modeCharacter vector specifying which sections to print. It is matched (partially) against c("summary","tests","estimates","evaluation"). Default is "summary".
digitsInteger. Number of significant digits used in printed tables. Default is 4.
NewPSTR, LinTest, WCB_LinTest,
EstPSTR, EvalTest, WCB_TVTest,
WCB_HETest.
pstr <- NewPSTR(Hansen99, dep = "inva", indep = 4:20,
indep_k = c("vala","debta","cfa","sales"),
tvars = c("vala","debta","cfa","sales"), iT = 14)
# default: summary only
pstr
# specification tests
print(pstr, mode = "tests", format = "simple")
print(pstr, mode = "tests", format = "pipe", caption = "The test results")
# estimates
print(pstr, mode = "estimates")
# evaluation
print(pstr, mode = "evaluation")
# R6 method interface (same output)
pstr$print(mode = c("summary","tests"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.