Specifying printing options for quantileFit

Goals

There may be times that you wish to turn off the output printing of quantileFit. This tutorial teaches how to do this using the qFit.verbose member. After this tutorial you should understand:

  • How to use the qFit.verbose member of the qFitControl structure

The qCtl.verbose member

The qCtl.verbose structure member can be used to control the output printing of quantileFit:


qCtl.verbose
Scalar, indicating whether to the print results, 0 = no printing, 1 = print results. Default = 1.

The qCtl.verbose member is an indicator member. Indicator inputs are similar to TRUE/FALSE parameters, is set to 0 for one case and 1 for the other case.

The qCtl.verbose member is set to 0 for the case of no output printing and 1 for the case where printing occurs.

Example

Consider our earlier example :

$$ln(wage) = \alpha + \beta_1 * age + \beta_2 * age^2 + \beta_3 * tenure$$

To turn off the printing of the output table, we can change the default value of qCtl.verbose from 1 to 0.

// Create string with full path to dataset
dataset = getGAUSSHome() $+ "examples/regsmpl.dta";

// Declare and fill control structure
struct qFitControl qCtl;

// Fill 'qCtl' with default settings
qCtl = qFitControlCreate();

// Turn off printing
qCtl.verbose = 0;

// Estimate the model with matrix inputs
struct qFitOut qOut;
qOut = quantileFit(dataset, "ln_wage ~ age + age:age + tenure", qCtl);

Conclusion

Congratulations! After this tutorial you should know how to use the qFit.verbose member of the qFitControl structure to turn off the printing of results from the quantileFit procedure.

The next tutorial teaches how to compute standard errors and confidence intervals for quantile regressions.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.