As stated previous section, different ways to
approximate nonparametric part will get the corresponding estimators of
.
This section will present several macros to explain how to calculate the
estimates.
Let
be a kernel function satisfying certain conditions,
a bandwidth parameter. The weight function is defined as
|
|
|
|
|
|
The detailed discussions on asymptotic theories
of the estimators
and
are referred to Gao, Hong and Liang
(1995) and Speckman (1988).
plmk
presents the estimates of the parameter
and the nonparametric part g(t) by using kernel method to
handle g(t).
The next picture , "plmk-ex.xpl", gives
an example of
XploRe
code to generate a sample from the
PLM
model, and then shows how to compute the
PLM
estimates by
plmk.
Saving the example as a file (plmk-ex.xpl) and then linking
"Execute",
the actual parameter estimates are shown in the second picture (XploRe_out).
An example by using
plmk

The estimate result of plmk-ex.xpl


Green curve stands for true value, blue for parametric fit and red for nonparametric fit..
Suppose that g has m-1 absolutely
continuous derivatives and m-th derivative that is square integrable
and satisfies
for a specified C>0. Via a Taylor expansion, the partially linear
model can be rewitten as
|
|
|
|
|
|
|
|
|
|
plmls
presents the estimates of parameter
and non parametric function by fitting the nonparametric part with least squares spline.
We assume that g are Hölder
continuous smooth of order p(=m+r), that is, let r
and M denote nonnegative real constants
,
m is nonnegative integer such that
|
|
Let
be the indicator function of the
-th
interval, and
be the midpoint of the
-th
interval, so that
or 0 according to
for
and
or not. Let
be the m-order Taylor expansion of g(t) on
.
Denote
|
|
Consider the piecewise polynomial approximation of g of degree m given by
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plmp presents the estimates
and
.
The next picture , "plmp-ex.xpl", gives
an example of
XploRe
code to generate a sample from the
PLM
model, and then shows how to compute the
PLM
estimates by
plmp.
Saving the example as a file (plmp-ex.xpl) and then linking "Execute",
the actual parameter estimates are shown in the second picture(XploRe_out).
An example by using
plmp

The parameter estimate value is listed as follows

The result of nonparametric fitting with following picture

Suppose that the
derivative of g(t) at the point
exists. We then approximate the unknown regression function g(t)
locally by a polynomial of order p. A Taylor expansion given, for
t in a neighborhood of
,
|
|
To estimate
and g(t), we first estimate the
's
as functions of
,
denoted
,
by minimizing
|
|
|
|
It is more convenient to work with matrix notation.
Denote by
the design matrix of T in problem (6). Denote
|
|
|
|
|
|
|
|
|
|
plmlorg is designed to impliment the
above arguments in
XploRe.
lpregest is used to estimate nonparametric
regression functions. Interpolation idea is employed to calculate the estimators
of beta and g(t).
Considering the same example in previous sections, we here approximate the nonlinear part with the 2-nd local polynomial approximation. The results for parametric and nonparametric parts are listed as follows.


|
MD*TECH Method and Data Technologies |
| http://www.mdtech.de mdtech@mdtech.de |