Professional Documents
Culture Documents
Easton_Imobiliaria <-
readXL("C:/Users/homedell/Documents/Livros de Mestrado/uff 2 semestre
livro/ESTATISTICA UFF 2019.1/Base_de_dados-master/Base de dados - Easton
Imobili�ria.xlsx",
rownames=FALSE, header=TRUE, na="NA", sheet="Banco de Dados",
stringsAsFactors=TRUE)
#Pizza 3D
par(bg="yellow")
library(plotrix)
pie3D(table(Easton_Imobiliaria$Corretora), labels=rotulo, explode=0.09, main="VENDA
FEITA PELA EASTON VS OUTRA IMOBILIARIA", col=c("#47a518", "#5364e2"))
===================================================================================
===================================================================================
==============
II) SUBVALORIZA��O OU N�O PELAS IMOBILIARIAS
summary(Easton_Imobiliaria$Pre�o)
valorizacao<-ifelse(Easton_Imobiliaria$Pre�o<=mean(Easton_Imobiliaria$Pre�o),"N�o
Subvalorizado","Subvalorizado")
corretora<-factor(Easton_Imobiliaria$Corretora)
tab<-table(corretora,valorizacao)
tab2<-prop.table(tab)*100
tab2
===================================================================================
=========================================================================
===================================================================================
=============================================================================
IV Rela��o Pre�o Por Regi�o
===================================================================================
=================================================================
CADO EASTON
12/05/19
---
title: "CASO EASTON"
author: "Goodry SAINT JEAN"
date: "09/05/2019"
output:
html_document:
theme: cerulean
toc: true
toc_float: true
code_folding: hide
---
### INTRODU��O
```{r}
library(RcmdrMisc)
Easton_Imobiliaria <-
readXL("C:/Users/homedell/Documents/Livros de Mestrado/uff 2 semestre
livro/ESTATISTICA UFF 2019.1/Base_de_dados-master/Base de dados - Easton
Imobili�ria.xlsx",
rownames=FALSE, header=TRUE, na="NA", sheet="Banco de Dados",
stringsAsFactors=TRUE)
```
```{r}
local({
.Table <- xtabs(~Corretora+Localiza��o, data=Easton_Imobiliaria)
cat("\nFrequency table:\n")
print(.Table)
cat("\nRow percentages:\n")
print(rowPercents(.Table))
.Test <- chisq.test(.Table, correct=FALSE)
print(.Test)
})
```
```{r}
Easton_Imobiliaria <- within(Easton_Imobiliaria, {
Corretora <- factor(Corretora, labels=c('Outra Corretora','Easton'))
})
```{r}
library(colorspace, pos=16)
library(plotrix)
Easton_Imobiliaria <- within(Easton_Imobiliaria, {Corretora <- factor(Corretora,
labels=c('Outra Corretora','Easton'))})
```
```{r}
summary(Easton_Imobiliaria$Pre�o)
valorizacao<-ifelse(Easton_Imobiliaria$Pre�o<=mean(Easton_Imobiliaria$Pre�o),"N�o
Subvalorizado","Subvalorizado")
corretora<-factor(Easton_Imobiliaria$Corretora)
tab<-table(corretora,valorizacao)
tab2<-prop.table(tab)*100
tab2
```
```{r}
densityPlot(Pre�o~Localiza��o, data=Easton_Imobiliaria, bw=bw.SJ, adjust=1,
kernel=dnorm, method="adaptive")
```