linear_model_py: fit the linear model using python

Description Usage Arguments Examples

View source: R/linear-model-py.r

Description

This a simple function to fit the linear model using python.

Usage

1

Arguments

Y

The response variable

X

Design matrix

Examples

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

cz354/bis557 documentation built on Dec. 20, 2020, 3:05 a.m.