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

View source: R/utils.R

print.PSTRR Documentation

Print the object of the class PSTR.

Description

This function prints the object of the class PSTR.

Usage

## 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

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)

yukai-yang/PSTR documentation built on Aug. 25, 2023, 10:14 a.m.