lm_coefs {kazaam} | R Documentation |
Linear Model Coefficients
Description
Coefficients of the linear model.
Usage
lm_coefs(x, y, tol = 1e-07)
Arguments
x , y |
The input data |
tol |
Numerical tolerance for deciding rank. |
Details
The model is fit using a QR factorization of the input x
. At this
time, that means
Both of x
and y
must be distributed in an identical fashion.
This means that the number of rows owned by each MPI rank should match, and
the data rows x
and labels y
should be aligned. Additionally,
each MPI rank should own at least one row. Ideally they should be load
balanced, so that each MPI rank owns roughly the same amount of data.
Value
A regular vector.
Communication
The operation has the same communication as
See Also
Examples
## Not run:
library(kazaam)
comm.set.seed(1234, diff=TRUE)
x = ranshaq(rnorm, 10, 3)
y = ranshaq(runif, 10)
fit = lm_coefs(x, y)
comm.print(fit)
finalize()
## End(Not run)
[Package kazaam version 0.1-0 Index]