Description Usage Arguments Value
View source: R/update_log_reg_coeffs.R
Runs Logistic Regression on each response with the model and updates the coefficients, predictors, and fitted values when the log-likelihood has been improved.
1 2 3 4 5 6 7 8 9 | baseline_update_log_reg_coeffs(
model,
responsemat,
coeffmat,
predictors,
fitted_values,
padding_zeros = 0L,
cols_to_update
)
|
model |
- model matrix. |
responsemat |
matrix of response vectors in columns. |
coeffmat |
initial coefficient matrix. |
predictors |
matrix of linear predictors, one column for each response. |
fitted_values |
matrix of fitted probabilities. |
padding_zeros |
integer number of padding zeros to add to the response and predictors, defaults to zero. |
cols_to_update |
vector of zeros and ones indicating which columns to update. |
list of coefficient matrix, predictor matrix, fitted_values matrix, vector of old loglikelihoods (from inputs) and vector on new log likelihoods based on the returned coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.