diagnose: Plotting the Objective Function

Description Usage Arguments Value Examples

Description

Plotting the Objective Function

Usage

1
diagnose(object, i = 1, size = 0.05, trim = NULL, GMM_only = 0)

Arguments

object

An ivqr object returned from the function ivqr()

i

index of specific quantile to inspect. For example, if argument taus = c(0.25,0.5,0.75) was used as an input of ivqr() , specify i=2 for the median.

size

the size of the test. Default is 0.05.

trim

a vector of two number indicating the lower and upper bounds of the quantiles to inspect.

Value

A plot of the objective function as well as the (asymptotical) first order conditions evaluated at the coefficient estimates.

Examples

1
2
3
data(ivqr_eg)
fit <- ivqr(y ~ d | z | x, c(0.25,0.5,0.75), grid = seq(-2,2,0.2), data = ivqr_eg)
diagnose(fit,2) # Plot the objective function at the median.

yuchang0321/IVQR documentation built on May 29, 2019, 12:19 p.m.