LRegress: Computes the linear regression. We have to compute beta from...

Description Usage Arguments Value

View source: R/LRegress.R

Description

Computes the linear regression. We have to compute beta from the linear equation: y = A*beta + error This is the function that will be running at local node level. The data (input parameters: y, A) are obtained from the local databases using a specific queries. These queries will be the same for all nodes.

Usage

1
LRegress(data, variable, covariables, grouping)

Arguments

data

Data obtained from specific query to the local Database.

variable

Name of the variable (column) that will be the dependent variable (left hand of the Linear model equation).

covariables

List of names of the co-variables for the design or regression matrix that will be obtained from specific query to the local Database.

grouping

List of names of the variables to group, default to empty list

Value

betai (rout[1]) : regression coefficient computed in nodes 'i'. Sigmai (rout[2]) : Covariance matrix of the regression coefficients betai. rout[3] : Summary of the linear regression results.


LREN-CHUV/hbplregress documentation built on May 7, 2019, 12:35 p.m.