powered by
This function creates ncpen y vector and x matrix from data using formula.
vector
matrix
make.ncpen.data(formula, data)
(formula) regression formula. Intercept will not be created.
(numeric matrix or data.frame) contains both y and X.
List of y vector and x matrix.
y vector
x matrix
# NOT RUN { data = data.frame(y = 1:5, x1 = 6:10, x2 = 11:15); formula = log(y) ~ log(x1) + x2; make.ncpen.data(formula, data); # }
Run the code above in your browser using DataLab