fit {mpower}R Documentation

Fits the model to given data and gets a list of significance criteria

Description

Fits the model to given data and gets a list of significance criteria

Usage

fit(mod, x, y)

Arguments

mod

An InferenceModel object

x

A matrix of predictors

y

A vector of outcome

Value

A list of some of the following significance criteria:

beta

The smaller posterior probability of being to one side of zero for linear term, given either the main effect or interaction is non-zero. Applicable to 'bma', 'bws', 'fin', and 'mixselect' model.

interact_beta

Same as linear_beta but for pair-wise interactions. Applicable to 'fin' model.

pip

Posterior inclusion probability (PIP) of either a linear or non-linear effect. Applicable to 'bma', 'bkmr', and 'mixselect' model.

group_pip

PIP of either a linear or non-linear effect. Applicable to 'bkmr' model.

linear_pip

PIP of a linear effect. Applicable to 'mixselect' model.

gp_pip

PIP of a non-linear effect. Applicable to 'mixselect' model.

pval

The p-value of the combined effect, the same for all predictors. Applicable to 'glm', and 'qgc' model.

time

elapsed time to fit the model.


[Package mpower version 0.1.0 Index]