locfit.raw {locfit}  R Documentation 
Local Regression, Likelihood and Density Estimation.
Description
locfit.raw
is an interface to Locfit using numeric vectors
(for a modelformula based interface, use locfit
).
Although this function has a large number of arguments, most users
are likely to need only a small subset.
The first set of arguments (x
, y
, weights
,
cens
, and base
) specify the regression
variables and associated quantities.
Another set (scale
, alpha
, deg
, kern
,
kt
, acri
and basis
) control the amount of smoothing:
bandwidth, smoothing weights and the local model. Most of these arguments
are deprecated  they'll currently still work, but should be provided through
the lp()
model term instead.
deriv
and dc
relate to derivative (or local slope)
estimation.
family
and link
specify the likelihood family.
xlim
and renorm
may be used in density estimation.
ev
specifies the evaluation structure or set of evaluation points.
maxk
, itype
, mint
, maxit
and debug
control the Locfit algorithms, and will be rarely used.
geth
and sty
are used by other functions calling
locfit.raw
, and should not be used directly.
Usage
locfit.raw(x, y, weights=1, cens=0, base=0,
scale=FALSE, alpha=0.7, deg=2, kern="tricube", kt="sph",
acri="none", basis=list(NULL),
deriv=numeric(0), dc=FALSE,
family, link="default",
xlim, renorm=FALSE,
ev=rbox(),
maxk=100, itype="default", mint=20, maxit=20, debug=0,
geth=FALSE, sty="none")
Arguments
x 
Vector (or matrix) of the independent variable(s). Can be constructed using the

y 
Response variable for regression models. For density families,

weights 
Prior weights for observations (reciprocal of variance, or sample size). 
cens 
Censoring indicators for hazard rate or censored regression. The coding
is 
base 
Baseline parameter estimate. If provided, the local regression model is
fitted as 
scale 
Deprecated  see 
alpha 
Deprecated  see 
deg 
Degree of local polynomial. Deprecated  see 
kern 
Weight function, default = 
kt 
Kernel type, 
acri 
Deprecated  see 
basis 
Userspecified basis functions. 
deriv 
Derivative estimation. If 
dc 
Derivative adjustment. 
family 
Local likelihood family; 
link 
Link function for local likelihood fitting. Depending on the family,
choices may be 
xlim 
For density estimation, Locfit allows the density to be supported on
a bounded interval (or rectangle, in more than one dimension).
The format should be 
renorm 
Local likelihood density estimates may not integrate
exactly to 1. If 
ev 
The evaluation structure,

maxk 
Controls space assignment for evaluation structures.
For the adaptive evaluation structures, it is impossible to be sure
in advance how many vertices will be generated. If you get
warnings about ‘Insufficient vertex space’, Locfit's default assigment
can be increased by increasing 
itype 
Integration type for density estimation. Available methods include

mint 
Points for numerical integration rules. Default 20. 
maxit 
Maximum iterations for local likelihood estimation. Default 20. 
debug 
If > 0; prints out some debugging information. 
geth 
Don't use! 
sty 
Deprecated  see 
Value
An object with class "locfit". A standard set of methods for printing, ploting, etc. these objects is provided.
References
Loader, C., (1999) Local Regression and Likelihood.