Semiparametric regression
# Semiparametric regression

In statistics, semiparametric regression includes regression models that combine parametric and nonparametric models. They are often used in situations where the fully nonparametric model may not perform well or when the researcher wants to use a parametric model but the functional form with respect to a subset of the regressors or the density of the errors is not known. Semiparametric regression models are a particular type of semiparametric modelling and, since semiparametric models contain a parametric component, they rely on parametric assumptions and may be misspecified and inconsistent, just like a fully parametric model.

## Methods

Many different semiparametric regression methods have been proposed and developed. The most popular methods are the partially linear, index and varying coefficient models.

### Partially linear models

A partially linear model is given by

    $Y_{i}=X'_{i}\beta +g\left(Z_{i}\right)+u_{i},\,\quad i=1,\ldots ,n,\,$

where $Y_{i}$ is the dependent variable, $X_{i}$ is a $p\times 1$ vector of explanatory variables, $\beta$ is a $p\times 1$ vector of unknown parameters and $Z_{i}\in \operatorname {R} ^{q}$. The parametric part of the partially linear model is given by the parameter vector $\beta$ while the nonparametric part is the unknown function $g\left(Z_{i}\right)$. The data is assumed to be i.i.d. with $E\left(u_{i}|X_{i},Z_{i}\right)=0$ and the model allows for a conditionally heteroskedastic error process $E\left(u_{i}^{2}|x,z\right)=\sigma ^{2}\left(x,z\right)$ of unknown form. This type of model was proposed by Robinson (1988) and extended to handle categorical covariates by Racine and Li (2007).

This method is implemented by obtaining a ${\sqrt {n}}$ consistent estimator of $\beta$ and then deriving an estimator of $g\left(Z_{i}\right)$ from the nonparametric regression of $Y_{i}-X'_{i}{\hat {\beta }}$ on $z$ using an appropriate nonparametric regression method.

### Index models

A single index model takes the form

    $Y=g\left(X'\beta _{0}\right)+u,\,$

where $Y$, $X$ and $\beta _{0}$ are defined as earlier and the error term $u$ satisfies $E\left(u|X\right)=0$. The single index model takes its name from the parametric part of the model $x'\beta$ which is a scalar single index. The nonparametric part is the unknown function $g\left(\cdot \right)$.

**Ichimura's method**

The single index model method developed by Ichimura (1993) is as follows. Consider the situation in which $y$ is continuous. Given a known form for the function $g\left(\cdot \right)$, $\beta _{0}$ could be estimated using the nonlinear least squares method to minimize the function

    $\sum _{i=1}\left(Y_{i}-g\left(X'_{i}\beta \right)\right)^{2}.$

Since the functional form of $g\left(\cdot \right)$ is not known, we need to estimate it. For a given value for $\beta$ an estimate of the function

    $G\left(X'_{i}\beta \right)=E\left(Y_{i}|X'_{i}\beta \right)=E\left[g\left(X'_{i}\beta _{o}\right)|X'_{i}\beta \right]$

using kernel method. Ichimura (1993) proposes estimating $g\left(X'_{i}\beta \right)$ with

    ${\hat {G}}_{-i}\left(X'_{i}\beta \right),\,$

the leave-one-out nonparametric kernel estimator of $G\left(X'_{i}\beta \right)$.

**Klein and Spady's estimator**

If the dependent variable $y$ is binary and $X_{i}$ and $u_{i}$ are assumed to be independent, Klein and Spady (1993) propose a technique for estimating $\beta$ using maximum likelihood methods. The log-likelihood function is given by

    $L\left(\beta \right)=\sum _{i}\left(1-Y_{i}\right)\ln \left(1-{\hat {g}}_{-i}\left(X'_{i}\beta \right)\right)+\sum _{i}Y_{i}\ln \left({\hat {g}}_{-i}\left(X'_{i}\beta \right)\right),$

where ${\hat {g}}_{-i}\left(X'_{i}\beta \right)$ is the leave-one-out estimator.

### Smooth coefficient/varying coefficient models

Hastie and Tibshirani (1993) propose a smooth coefficient model given by

    $Y_{i}=\alpha \left(Z_{i}\right)+X'_{i}\beta \left(Z_{i}\right)+u_{i}=\left(1+X'_{i}\right)\left({\begin{array}{c}\alpha \left(Z_{i}\right)\\\beta \left(Z_{i}\right)\end{array}}\right)+u_{i}=W'_{i}\gamma \left(Z_{i}\right)+u_{i},$

where $X_{i}$ is a $k\times 1$ vector and $\beta \left(z\right)$ is a vector of unspecified smooth functions of $z$.

$\gamma \left(\cdot \right)$ may be expressed as

    $\gamma \left(Z_{i}\right)=\left(E\left[W_{i}W'_{i}|Z_{i}\right]\right)^{-1}E\left[W_{i}Y_{i}|Z_{i}\right].$
