baseline_update_log_reg_coeffs: Baseline Update Function

Description Usage Arguments Value

View source: R/update_log_reg_coeffs.R

Description

Runs Logistic Regression on each response with the model and updates the coefficients, predictors, and fitted values when the log-likelihood has been improved.

Usage

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
)

Arguments

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.

Value

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.


CCGill/LRpadding documentation built on May 11, 2020, 12:21 a.m.