linregDSS | R Documentation |
Caclulates X'X and X'y as in the normal equation, i.e. the MLE for beta is b = inv(X'X) X'Y . No need to calculate beta here, nor to share the matrix X. Also returns y'y and the sample size in order to recompute the T statistics (and the p-values).
linregDSS(df, dep_var, expl_vars)
dep_var: |
[string] the column name for the dependent variable (y). |
expl_vars: |
[vector of strings] the column names for the explanatory variables. |
a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.