This packages analyses the possible variables( Age, Income, Family size, Expenditure, Family size, Online cards, Online purchases) that can determine the account balance of 100 observation.
# first install the R package "devtools" if not installed
devtools::install_github("unimi-dse/2d3bd55d")
# load the package
require(accountbalance)
#import the data
import_data()
# find out more about the dataset
?accountbalance
The function relationship(~ x)
plots the indipendent variable(accbl) against an explanotory variable (x) that you choose
# to find more about it
?relationship
The function color(~x, ~z)
plots the same as the function above but the color of the plot correspond to other explanotory variables
# to find more about it
?color
The function plotres(x)
plots the residual against the predicted values
# to find more about it
?plotres
There are two regression: the first is without dummy variables linear.r()
the second one includes them(Online cards,Online purchases) linearD()
.
The function res
allows yoy too see the residuals in ascending order.
#to see the coefficient
linear.r()
linearD()
#to see the total output
regression_output(linear.r())
regression_output(linearD())
# to see information
?linear.r()
?linearD()
?regression_output()
?res()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.