base(x, type = c("pspline", "2dspline", "markov", "radial", "krig",
"random", "ridge", "special", "parametric"),
B = NA, P = NA, bnd = NA, center =TRUE)
type
number of variables of x
has to be 2, more dimensions are allowed in 'ridge' and 'special' type
.
'markov' and 'random' type
x
.
Further description of the possible options is given below in details
.type
the base B
and penalization matrix P
are entered manually. The data frame or matrix needs as many rows as observations in x
and as many columns as P
.type
if no bnd
is given.bnd
, required with 'markov' type if P
is not given.
See read.bnd
.x
given to the function.type
as given to the function.bnd
as given to the function, only needed with 'markov' type
.type
for calculation of the fitted values.type
,
otherwise 'NA'.types
of bases:
diff
.
2dspline Tensor product of 2 p-spline bases
with the same properties as above.
markov Gaussian markov random field with a neighbourhood
structure given by P
or bnd
.
radial 2-dimensional base, knots are subset of observations,
base is calculated as r^2*log(r) with r equalling
the euclidean distance between the current observation
and the knots. The base has size 50 if possible.
krig 'kriging' produces basically the same base as 'radial',
but the base is calculated as exp(-r/phi)*(1+r/phi)
where phi
is the maximum euclidean distance
between two knots divided by a constant.
random A 'random' effect is like the 'markov' random field
based on a categorial variable,
and since there is no neighbourhood structure, P = I.
ridge In a 'ridge' regression, the base is made
from the independent variables while the goal is
to determine significant variables from the coefficients.
Therefore no penalization is used (P = I).
special In the 'special' case, B
and P
are user defined.
parametric A parametric effect.
}expectile.restricted
, expectile.laws
x <- rnorm(100)
bx <- base(x,"pspline")
y <- sample(10,100,replace=TRUE)
by <- base(y,"random")
Run the code above in your browser using DataLab