Description Usage Arguments Value
RunModel
is an internal function that applies a regression model to
constructed model data and regurns model coefficients.
1 2 3 4 5 6 7 8 |
formula |
Formula to be used in model. |
modelData |
data.table with all data to be used in model. Constructed with BuildModelData function. |
comparison |
Vector containing rownames or numbers of x and y included in test. |
returnVars |
Character vector of coefficient variable names to return. By default, returns all coefficients for variables in xName. To return all coefficients (including intercept), use "*". |
FUN |
Function to be used for regression analysis. Defaults to lm(). |
... |
Additional parameters to be passed to FUN. |
A data.table with model coefficients for all variables in returnVars. Includes comparison, variable name, Estimate, Std. Error, t- or z-value, and pValue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.