convert2: Convert gammas to alphas

Description Usage Arguments Value

View source: R/utility_functions.R

Description

function that takes a vector of betas (which are the main effects) and gammas and converts the alphas to gammas. This function is used to calculate the linear predictor of the likelihood function (the Q function in the fitting algorithm)

Usage

1
convert2(beta, gamma, main.effect.names, interaction.names, intercept = NULL)

Arguments

main.effect.names

character vector of main effects names. MUST be ordered in the same way as the column names of x. e.g. if the column names of x are \"x1\",\"x2\" then main.effect.names = c("x1","x2")

interaction.names

character vector of interaction names. MUST be separated by a colon (e.g. x1:x2), AND MUST be ordered in the same way as the column names of x

betas.and.gammas

q x 1 data.frame or matrix of betas and gamma estimates. For example the output from the convert function. The rownames must be appropriately labelled because these labels will be used in other functions

Value

a labelled q x 1 data.frame of betas and alphas


sahirbhatnagar/eclustProject documentation built on May 29, 2019, 12:58 p.m.