equacoes: Regression equation

View source: R/helpers.R

equacoesR Documentation

Regression equation

Description

Givens a lm object, returns its regression equation

Usage

equacoes(
  object,
  type = c("reg", "est"),
  inline = TRUE,
  FUN,
  accuracy = 100,
  f = round,
  errorTerm = TRUE
)

Arguments

object

object of class lm

type

the equation type required: regression (reg) or estimation (est).

inline

the equation mode. TRUE for inline equations or FALSE for displayed mode.

FUN

transformation applied to dependent variable.

accuracy

number to round to; for POSIXct objects, a number of seconds

f

rounding function: floor, ceiling or round

Examples

data(centro_2015)
centro_2015 <- within(centro_2015, VU <- valor/area_total)
fit <- lm(log(VU) ~ log(area_total) + quartos + suites + garagens +
           log(dist_b_mar) + padrao, centro_2015)
equacoes(fit)
equacoes(fit, accuracy = .01)

lfpdroubi/appraiseR documentation built on March 23, 2024, 6:16 a.m.