Description Usage Arguments Examples
View source: R/linear-model-py.r
This a simple function to fit the linear model using python.
1 | linear_model_py(Y, X)
|
Y |
The response variable |
X |
Design matrix |
1 2 3 4 | data(iris)
Y=matrix(iris$Sepal.Length, ncol = 1)
X=model.matrix(Sepal.Length ~ .,iris)
linear_model_py(Y,X)$coefficients
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.