diff --git "a/US12 - Tabela Intercorrela\303\247\303\243o Vari\303\241veis Independentes.R" "b/US12 - Tabela Intercorrela\303\247\303\243o Vari\303\241veis Independentes.R" index 7b77d1d..5954367 100644 --- "a/US12 - Tabela Intercorrela\303\247\303\243o Vari\303\241veis Independentes.R" +++ "b/US12 - Tabela Intercorrela\303\247\303\243o Vari\303\241veis Independentes.R" @@ -4,7 +4,9 @@ tabela1 = read.csv("dados/TabelaParaPerfis.csv") tabela2 = read.csv("dados/TableSessionLength.csv") tabela3 = read.csv("dados/submissoes_corretas_tempo.csv") +tabela4 = read.csv("dados/Geral.csv") +tabela4 = tabela4[,c("matricula", "nota.final.pratica")] tabela1 = tabela1[,-3] tabela2 = with(tabela2,aggregate(session,list(matricula),FUN=max)) colnames(tabela2) = c("matricula", "numeroSessoes") @@ -18,7 +20,9 @@ tabela3$ProporcaoSubCorretas = tabela3$correctSubmissions/tabela3$amountSubmissi tabelaCompleta = merge(tabela1,tabela2,by.x="matricula",by.y="matricula") tabelaCompleta = merge(tabelaCompleta,tabela3,by.x="matricula",by.y="matricula") -colnames(tabelaCompleta) = c("matricula","Mediana Sessao","Numero Exercicios","Tempo Total Estudo","Atividade","Numero Sessoes","Total Submissoes","Submissoes Corretas","Proporcao Submissoes Corretas") +tabelaCompleta = merge(tabelaCompleta,tabela4,by.x="matricula",by.y="matricula") + +colnames(tabelaCompleta) = c("matricula","Mediana Sessao","Numero Exercicios","Tempo Total Estudo","Atividade","Numero Sessoes","Total Submissoes","Submissoes Corretas","Proporcao Submissoes Corretas","Nota Final") tabelaCorrelacao = cor(tabelaCompleta[,-1], use="complete.obs", method=c("spearman")) diff --git "a/dados/TabelaIntercorrela\303\247\303\243o.csv" "b/dados/TabelaIntercorrela\303\247\303\243o.csv" deleted file mode 100644 index b1380f6..0000000 --- "a/dados/TabelaIntercorrela\303\247\303\243o.csv" +++ /dev/null @@ -1,9 +0,0 @@ -"","Mediana Sessao","Numero Exercicios","Tempo Total Estudo","Atividade","Numero Sessoes","Total Submissoes","Submissoes Corretas","Proporcao Submissoes Corretas" -"Mediana Sessao",1,-0.0260125302044194,0.386799955315911,-0.000407776795317706,-0.0148015192453581,0.0181414242896943,0.0211321301055678,0.0539464085032453 -"Numero Exercicios",-0.0260125302044194,1,0.698764149039411,0.827883242336209,0.830139195305262,0.918116859115602,0.938010749755792,0.606350263218721 -"Tempo Total Estudo",0.386799955315911,0.698764149039411,1,0.820402057865581,0.854510879563353,0.713452831925155,0.684768536537834,0.386771123613229 -"Atividade",-0.000407776795317706,0.827883242336209,0.820402057865581,1,0.973166311924966,0.805554247850085,0.795056455904558,0.472886433649211 -"Numero Sessoes",-0.0148015192453581,0.830139195305262,0.854510879563353,0.973166311924966,1,0.808834324722687,0.785285492500503,0.450552391366799 -"Total Submissoes",0.0181414242896943,0.918116859115602,0.713452831925155,0.805554247850085,0.808834324722687,1,0.949239446248505,0.48481980471329 -"Submissoes Corretas",0.0211321301055678,0.938010749755792,0.684768536537834,0.795056455904558,0.785285492500503,0.949239446248505,1,0.691394056645629 -"Proporcao Submissoes Corretas",0.0539464085032453,0.606350263218721,0.386771123613229,0.472886433649211,0.450552391366799,0.48481980471329,0.691394056645629,1