Skip to content

Instantly share code, notes, and snippets.

View alstat's full-sized avatar

Al Asaad alstat

View GitHub Profile
#Al-Ahmadgaid Asaad
#As part of the yearly report of the manager of human
#resources at St. Luke’s Medical Center, he is requested to
#present analysis of the salaried employees. He selects a
#random sample of 30, from over 1,000 employees, and records
#the Monthly salary, service in months, and age of the
#employee.
table #The table here was not generated from R but from SPSS
#Solving for the values of SSR,SSE, and SST using matrix in R.
#Codes:
#Lets input first everything we need in the computations.
#Inputting the given for the dependent and independent value.
IndependentVar <-c(1,93,1,104,1,104,1,126,1,98,1,99,1,94,1,96,
[17] 1,124,1,73,1,110,1,90,1,104,1,81,1,106,1,113,1,129,1,97,1,
[37] 101,1,91,1,100,1,123,1,88,1,117,1,107,1,105,1,86,1,131,1,
[58] 95,1,98)
#Solving for the values of SSR,SSE, and SST using matrix in R.
#Codes:
#Lets input first everything we need in the computations.
#Inputting the given for the dependent and independent value.
IndependentVar <-c(1,93,1,104,1,104,1,126,1,98,1,99,1,94,1,96,
[17] 1,124,1,73,1,110,1,90,1,104,1,81,1,106,1,113,1,129,1,97,1,
[37] 101,1,91,1,100,1,123,1,88,1,117,1,107,1,105,1,86,1,131,1,
[58] 95,1,98)
>install.packages("RVAideMemoire")
install.packages("RVAideMemoire")
>library(RVAideMemoire) #the package is being called.
>install.packages("RVAideMemoire")
>install.packages("RVAideMemoire")
install.packages("RVAideMemoire")
library(RVAideMemoire) #the package is being called.