Learn R Programming

lava (version 1.9.3)

estimate.formula: Estimate method for formulas

Description

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

Usage

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

Value

Object of class estimate (see estimate.default).

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