NLhat | R Documentation |
This is an auxiliary function for ‘gmcmtxBlk.’ It uses
two numerical vectors (x, y) of same length to create two vectors
(xhat, yhat) of fitted values using nonlinear kernel regressions.
It
uses package ‘np’ called by
kern
function to kernel regress x on y, and conversely y on x.
It uses the option ‘residuals=TRUE’ of ‘kern’
NLhat(x, y)
x |
A column vector of x data |
y |
A column vector of y data |
two vectors named xhat and yhat for fitted values
Prof. H. D. Vinod, Economics Dept., Fordham University, NY
See Also as gmcmtxBlk
.
## Not run:
set.seed(34);x=sample(1:15);y=sample(1:15)
NLhat(x,y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.