Skip to contents

Fit a GLM model specified by a formula and apply estimate.default for robust inference.

Usage

# S3 method for class 'formula'
estimate(
  x,
  data,
  weights,
  family = stats::gaussian,
  ...,
  model = "glm",
  lvm = FALSE
)

Arguments

x

formula specifying the model

data

data.frame

weights

optional weights

family

GLM family (default gaussian)

...

Additional arguments to estimate.default

model

character string specifying the model type (default "glm")

lvm

logical, if TRUE use estimate.lvm instead

Value

Object of class estimate (see estimate.default).