Learn R Programming

modelc (version 1.0.0.0)

has_parameter: Check if an R model contains a coefficient

Description

Check if an R model contains a coefficient

Usage

has_parameter(model, parameter)

Arguments

model

A list with the same signature as the output of lm or glm

parameter

A parameter name

Value

A logical representing whether a coefficient is present in the model