InferenceModel {mpower}R Documentation

Statistical model that returns significance criterion

Description

This function creates a wrapper function for a statistical model and its applicable significance criterion. It finds relationships between a matrix of predictors and a vector of outcomes using the statistical model, and determines if the relationships are 'significant' according to pre-specified criterion for that model.

Usage

InferenceModel(model, name = NULL, ...)

Arguments

model

A string of the name of a built-in statistical model or a function implements a statistical model and returns a list of significance criteria for each predictor. Built-in options include 'bma', 'bkmr', 'mixselect', 'bws', 'qgc', 'fin', 'glm'.

name

A string, name of the statistical model. Default to string input of model.

...

Additional keyword arguments for the statistical model

Value

An InferenceModel object.

model

a function that takes matrices of predictors and outcomes and returns a list of significance criteria.

model_name

a string.

Examples

imod <- mpower::InferenceModel(model = 'glm', family = 'gaussian',
formula = y ~ Poverty*(poly(Age, 2) + HHIncome + HomeOwn + Education))

[Package mpower version 0.1.0 Index]