Documente Academic
Documente Profesional
Documente Cultură
setwd("C:/Users/test/Desktop/Inteligenta computationala/Proiect")
##date<-read.table(file="Date_IC.txt",sep='\t',header=TRUE,row.names = 1)
date<-read.csv(file="Date_IC1.csv",sep=',',header=TRUE,row.names = 1)
View(date)
DATE<-date[,2:8]
View(DATE)
## I Statistici descriptive
summary(DATE)
install.packages("e1071")
library(e1071)
sd(date$SMPD)
cv=sd(date$SMPD)/mean(date$SMPD)
cv
skewness(date$SMPD)
skewness(date[,2])
kurtosis(date$SMPD)
sd(date$CBS)
cv=sd(date$CBS)/mean(date$CBS)
cv
skewness(date$CBS)
skewness(date[,2])
kurtosis(date$CBS)
# Histograme
windows()
# Boxplot
windows()
model<-lm(date$SV~date$RM)
summary(model)
abline(lm(date$SV~date$RM),col="darkblue")
r=resid(model)
summary(r)
#1) Standardizare
Date_std<-scale(DATE,scale=TRUE)
View(Date_std)
windows()
pairs(Date_std)
corelatie<-cor(Date_std)
View(corelatie)
acp<-princomp(Date_std,scores=TRUE,cor=TRUE)
acp
summary(acp)
load<-loadings(acp)
load[,1:7]
scoruri<-acp$scores
scoruri
corelatie_scoruri<-cor(scoruri)
corelatie_scoruri
biplot(acp)
matrice_factor<-cor(Date_std,scoruri)
matrice_factor