translateSPSS2R (version 1.0.0)

xpssRegression: Calculates a linear Regression

Description

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

Usage

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?

Value

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

Details

Implementation from SPSS Regression in R

Examples

Run this code
data(fromXPSS)

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

Run the code above in your browser using DataLab