Description Usage Arguments Author(s) See Also
Creates a sgldata object from a design matrix and an optional response vector or matrix.
1 2 3 4 | create.sgldata(x, y, response_dimension = .get_response_dimension(y),
response_names = .get_response_names(y), sparseX = is(x,
"sparseMatrix"), sparseY = is(y, "sparseMatrix"),
typeX = element_class(x), typeY = element_class(y))
|
x |
the design matrix, a matrix of size N \times p (will be parsed to the loss module as |
y |
the responses, |
response_dimension |
number of models, that is the dimension of the returned response. |
response_names |
names of models, that is the names of the elements of the returned response. |
sparseX |
if TRUE |
sparseY |
if TRUE |
typeX |
type of the elements of x. |
typeY |
type of the elements of y. |
Martin Vincent
Other sgldata: add_data.sgldata
,
prepare.args.sgldata
,
prepare.args
, prepare_data
,
rearrange.sgldata
,
subsample.sgldata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.