regression.data: Creates a data.frame that can be used to run a regression...

Description Usage Arguments Value

View source: R/regtools.R

Description

Creates a data.frame that can be used to run a regression with the given formula

Usage

1
2
regression.data(formula = stats::formula(reg), reg = NULL, data = NULL,
  normalize.names = TRUE, remove.intercept = TRUE, expand = FALSE)

Arguments

formula

a regression formula e.g. y~log(x1)+x2

reg

optionally a regression object from which the formula is takes

data

a data frame that contains original variables used in formula

normalize.names

if TRUE (default) change column names to be valid R variable names

remove.intercept

if TRUE (default) do not generate an .Intercept column

expand

if TRUE, call expanded.regression.data instead

Value

a data.frame


skranz/regtools documentation built on May 30, 2019, 3:02 a.m.