Description Usage Arguments Value
View source: R/utility_functions.R
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
1 2 | update_weights(betas, gammas, main.effect.names, interaction.names,
epsilon = 1e-05)
|
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
|
q x 1 matrix of weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.