Description Usage Arguments Value Author(s) Examples
This function creates ncpen y vector
and x matrix
from data using formula.
1 |
formula |
(formula) regression formula. Intercept will not be created. |
data |
(numeric matrix or data.frame) contains both y and X. |
List of y vector and x matrix.
y.vec |
y |
x.mat |
x |
Dongshin Kim, Sunghoon Kwon, Sangin Lee
1 2 3 | data = data.frame(y = 1:5, x1 = 6:10, x2 = 11:15);
formula = log(y) ~ log(x1) + x2;
make.ncpen.data(formula, data);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.