·
Ciência e Tecnologia ·
Linguagens de Programação
Send your question to AI and receive an answer instantly
Recommended for you
Preview text
Exercício com R Dataset TITANIC Vence 14 de abril de 2023 às 2359 Fecha 14 de abril de 2023 às 2359 Instruções Turma nós conseguimos o R e o R Studio instalados nos notebooks da sala Sagui Segue trabalho para compor a nota da P1 1 Trabalho individual 2 Referências httpsmediumcomanalyticsvidhyaabeginnersguidetolearningrwiththetitanicdataseta630bc5495a8 httpstrevorstephenscomkaggletitanictutorialrpart3decisiontrees Objetivo 1 Fazer tabelas de proporção utilizando o código abaixo Pelas proporções é possível chegar em algumas conclusões Quais são DataSet interno do R library datasets data Titanic titan Titanic titan str titan summary titan View titan Sobrevivência de acordo com sexo e ESTRATIFICADA pela classe de viagem tabtitan1 xtabs Freq Sex Class Survived data titan tabtitan1 ftable tabtitan1 Sobrevivência de acordo com sexo estratificado pela idade tabtitan2 xtabs Freq Sex Age Class Survived data titan tabtitan2 ftable tabtitan2 proptable ftable tabtitan2 1 OBJETIVO 2 Fazer a árvore de decisão pela função RPART e pela FUNçÃO RANDOM FOREST COMENTE OS RESULTADOS Os resultados são diferentes Se sim Porquê DataSet do KAGGLE anexo Código de EXEMPLO para o RPART library rpart fit rpart Survived Pclass Sex Age SibSp Parch Fare Embarked data train method class installpackages rattle installpackages rpartplot installpackages RColorBrewer library rattle library rpartplot library RColorBrewer fancyRpartPlot fit OBJETIVO 3 Execute a Regressão Logística e o Naïve Bayes Interprete os resultados utilize outras fontes na internet se nenessário
Send your question to AI and receive an answer instantly
Recommended for you
Preview text
Exercício com R Dataset TITANIC Vence 14 de abril de 2023 às 2359 Fecha 14 de abril de 2023 às 2359 Instruções Turma nós conseguimos o R e o R Studio instalados nos notebooks da sala Sagui Segue trabalho para compor a nota da P1 1 Trabalho individual 2 Referências httpsmediumcomanalyticsvidhyaabeginnersguidetolearningrwiththetitanicdataseta630bc5495a8 httpstrevorstephenscomkaggletitanictutorialrpart3decisiontrees Objetivo 1 Fazer tabelas de proporção utilizando o código abaixo Pelas proporções é possível chegar em algumas conclusões Quais são DataSet interno do R library datasets data Titanic titan Titanic titan str titan summary titan View titan Sobrevivência de acordo com sexo e ESTRATIFICADA pela classe de viagem tabtitan1 xtabs Freq Sex Class Survived data titan tabtitan1 ftable tabtitan1 Sobrevivência de acordo com sexo estratificado pela idade tabtitan2 xtabs Freq Sex Age Class Survived data titan tabtitan2 ftable tabtitan2 proptable ftable tabtitan2 1 OBJETIVO 2 Fazer a árvore de decisão pela função RPART e pela FUNçÃO RANDOM FOREST COMENTE OS RESULTADOS Os resultados são diferentes Se sim Porquê DataSet do KAGGLE anexo Código de EXEMPLO para o RPART library rpart fit rpart Survived Pclass Sex Age SibSp Parch Fare Embarked data train method class installpackages rattle installpackages rpartplot installpackages RColorBrewer library rattle library rpartplot library RColorBrewer fancyRpartPlot fit OBJETIVO 3 Execute a Regressão Logística e o Naïve Bayes Interprete os resultados utilize outras fontes na internet se nenessário