xpssRegression: Calculates a linear Regression

Description Usage Arguments Details Value Author(s) Examples

View source: R/xpssRegression.R

Description

R Implementation of the SPSS REGRESSION Function.xpssRegression calculates linear regressions with associated statistics and plots.

Usage

1
2
xpssRegression(x, variables = NULL, dependent, method = enter(),
missing = "listwise", statistics = c("COEFF", "OUTS", "R", "ANOVA"), origin = FALSE)

Arguments

x

a (non-empty) data.frame, data.table object or input data of class "xpssFrame".

variables

vector with independent Variables as characters

dependent

dependent Variable as character

method

regression method to apply. Currently only enter() is implemented

missing

Method to handle missing values. Currently only listwise is implemented

statistics

character vector, which statistics should be in the output. Currently the function will return standard lm output. Only output for ANOVA is optional

origin

Should the constant be compressed?

Details

Implementation from SPSS Regression in R

Value

returns a list of lists, each applied method is its own list with regression, anova and beta-coeffizients as elements

Author(s)

Martin Schneider

Examples

1
2
3
4
5
6
data(fromXPSS)

xpssRegression(x = fromXPSS,
 		variables = c("V7_1","V7_2"),
 		dependent = "V5",
 		method = list(enter()))

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.