1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
\name{model.matrix.stepmented}
\alias{model.matrix.stepmented}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Design matrix for stepmented fits
}
\description{
This function builds the model matrix for \code{stepmented} fits.
}
\usage{
\method{model.matrix}{stepmented}(object, type=c("cdf","abs","none"), k=NULL, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{object}{
A stepmented fit
}
\item{k}{
The (negative) exponent of the sample size to approximate the absolute value; see \code{\link{vcov.stepmented}} for details.
}
\item{type}{
The approximation for the indicator function/absolute value. If \code{"none"}, the simple matrix with the original indicator values is returned. \code{type='abs'} is not yet allowed.
}
\item{\dots}{
additional arguments
}
}
\details{
If \code{type="none"}, \code{model.matrix.stepmented} return the design matrix including the indicator function values and ignoring the psi terms.
}
\value{
The design matrix for a stepmented regression model with the specified formula and data
}
\author{
Vito Muggeo
}
%\note{
%% ~~further notes~~
%}
%% ~Make other sections like Warning with \section{Warning }{....} ~
\seealso{
See Also as \code{\link{model.matrix}}, \code{\link{vcov.stepmented}}
}
%\examples{
%
%}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory (show via RShowDoc("KEYWORDS")):
% \keyword{ ~kwd1 }
% \keyword{ ~kwd2 }
% Use only one keyword per line.
% For non-standard keywords, use \concept instead of \keyword:
% \concept{ ~cpt1 }
% \concept{ ~cpt2 }
% Use only one concept per line.
|