addIntercept | R Documentation |
Given a matrix
or data.frame
of size nxp, returns an
nx(p+1) object of the same type where the first column is an
intercept if the intercept is not already in the object (defined
as a first column being all 1's).
addIntercept(x)
x |
A |
A matrix
(if x
is a matrix
) or
data.frame
(if x
is a data.frame
)
guaranteed to have an intercept column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.