PSTR (version 1.0.1)

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

Description

This function prints the object of the class PSTR.

Usage

# S3 method for PSTR
print(x, mode = "summary", 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 'summary'.

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.

See Also

Functions which return an object of the class PSTR:

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

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataCamp Workspace