print.PSTR: Print the object of the class PSTR.

Description Usage Arguments Author(s) See Also Examples

Description

This function prints the object of the class PSTR.

Usage

1
2
## S3 method for class 'PSTR'
print(x, mode = c("su", "e"), digits = 4, ...)

Arguments

x

an object of the class PSTR returned from some functions in the package. See below "See Also" for a list of these functions.

mode

a vector of character strings specifying which results to print. It takes the values c('summary', 'tests', 'estimates', 'evaluation'). By default 'su' and 'e' which means all.

digits

integer indicating the number of decimal places (for the round function inside) to be used. Negative values are allowed (see round).

...

further arguments passed to or from other methods. Ignored here.

Author(s)

Yukai Yang, yukai.yang@statistik.uu.se

See Also

Functions which return an object of the class PSTR:

NewPSTR, LinTest, WCB_LinTest, EstPSTR, EvalTest, WCB_TVTest and WCB_HETest

Examples

1
2
3
4
pstr = NewPSTR(Hansen99, dep='inva', indep=4:20, indep_k=c('vala','debta','cfa','sales'),
    tvars=c('vala','debta','cfa','sales'), iT=14)
print(pstr)
print(pstr, mode='summary',digits=2)

Example output

################################################################################
## PSTR 1.2.3 'Orange Panel'
################################################################################
********************************************************************************
Summary of the model:
--------------------------------------------------------------------------------
  time horizon sample size = 14,  number of individuals = 560
--------------------------------------------------------------------------------
Dependent variable:  inva
--------------------------------------------------------------------------------
Explanatory variables in the linear part:
  dt_75 dt_76 dt_77 dt_78 dt_79 dt_80 dt_81 dt_82 dt_83 dt_84 dt_85 dt_86 dt_87 vala debta cfa sales
--------------------------------------------------------------------------------
Explanatory variables in the non-linear part:
  vala debta cfa sales
--------------------------------------------------------------------------------
Potential transition variable(s) to be tested:
  vala debta cfa sales
################################################################################
********************************************************************************
Results of the linearity (homogeneity) tests:
********************************************************************************
Sequence of homogeneity tests for selecting number of switches 'm':
********************************************************************************
################################################################################
################################################################################
## PSTR 1.2.3 'Orange Panel'
################################################################################
********************************************************************************
Summary of the model:
--------------------------------------------------------------------------------
  time horizon sample size = 14,  number of individuals = 560
--------------------------------------------------------------------------------
Dependent variable:  inva
--------------------------------------------------------------------------------
Explanatory variables in the linear part:
  dt_75 dt_76 dt_77 dt_78 dt_79 dt_80 dt_81 dt_82 dt_83 dt_84 dt_85 dt_86 dt_87 vala debta cfa sales
--------------------------------------------------------------------------------
Explanatory variables in the non-linear part:
  vala debta cfa sales
--------------------------------------------------------------------------------
Potential transition variable(s) to be tested:
  vala debta cfa sales
********************************************************************************
################################################################################

PSTR documentation built on June 4, 2019, 1:03 a.m.