IDEAS home Printed from
   My bibliography  Save this paper

Estimation of Varying Coefficient models in Stata


  • Fernando Rios-Avila

    (Levy Economics Institute)


Non-parametric regressions are a powerful statistical tool to model relationships between dependent and independent variables with minimal assumptions on the underlying functional forms. However, these types of models have two main weaknesses: First, their added flexibility also creates a curse of dimensionality, even with a modest set of independent variables. Second, while the above weakness can be addressed using larger samples, procedures available for model selection, in particular cross-validation, are computationally intensive in large samples. An alternative is to use semiparametric regression modeling combining the flexibility of non-parametric with the structure of standard models. In this presentation, I’m introducing a set of programs that aim to estimate a semiparametric model known as varying coefficient models. The proposed modules estimate linear models where the coefficients for the independent variables are assume to be a smooth function of a single running z, using a local linear kernel estimation. The current set of modules can be used to: 1) Estimate the optimal bandwidth for the semiparametric model using CV, 2) Estimate the model(s) using a predefined set of reference points, with three alternatives standard errors estimations 3) Obtain the model predictions as well as a set of diagnosis and specification tests, 4) Plot all the coefficients, and rate of change, respect to the running variable for the selected points of reference.

Suggested Citation

  • Fernando Rios-Avila, 2019. "Estimation of Varying Coefficient models in Stata," 2019 Stata Conference 6, Stata Users Group.
  • Handle: RePEc:boc:scon19:6

    Download full text from publisher

    File URL:
    Download Restriction: no

    More about this item


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scon19:6. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: . General contact details of provider: .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.