print.STNP: Print a specification test 'STNP' object

View source: R/SpeTest.R

print.STNPR Documentation

Print a specification test STNP object

Description

Prints the test statistic and p-value of a specification test object of class STNP

Usage

## S3 method for class 'STNP'
print(x, ...)

Arguments

x

An object of class STNP resulting from function SpeTest

...

Additional print arguments

Value

No return value, prints the test statistic and p-value

Author(s)

Hippolyte Boucher <Hippolyte.Boucher@outlook.com>

Pascal Lavergne <lavergnetse@gmail.com>

See Also

SpeTest is the function which performs a specification test and records it along with all its options in an object of class STNP

summary.STNP prints a summary of the specification test with all the options used

Examples

n <- 100
k <- 2
x <- matrix(rnorm(n*k),ncol=k)
y<-1+x%*%(1:k)+rnorm(n)

eq<-lm(y~x+0)


print(SpeTest(eq=eq,type="icm",nboot=50))


SpeTestNP documentation built on Oct. 29, 2022, 1:09 a.m.