update_weights: Update Weights based on betas and gammas.

Description Usage Arguments Value

View source: R/utility_functions.R

Description

uses betas and gammas to update weights. this is used to update the weights at each iteration of the fitting algorithm in the shim function

Usage

1
2
update_weights(betas, gammas, main.effect.names, interaction.names,
  epsilon = 1e-05)

Arguments

main.effect.names

character vector of main effects names

interaction.names

character vector of interaction names. must be separated by a colon (e.g. x1:x2)

betas.and.gammas

q x 1 data.frame or matrix of betas and gamma estimates. The rownames must be appropriately labelled because these labels are be used in this function and must match those in the arguments main.effect.names and interaction.names

Value

q x 1 matrix of weights


sahirbhatnagar/shim documentation built on May 29, 2019, 12:59 p.m.