R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

library(tseries)
library(ggplot2)
library(ggfortify)
library(dplyr)
library(plotly)
library(readxl)
library(TSstudio)
SerieIQY <- read_excel("SerieIQY.xlsx")
summary(SerieIQY)
##  Año - Trimestre    Índices nominales Índices reales  
##  Length:143         Min.   :  54.17   Min.   : 60.50  
##  Class :character   1st Qu.: 374.86   1st Qu.: 81.38  
##  Mode  :character   Median : 579.96   Median : 95.12  
##                     Mean   : 915.44   Mean   : 97.66  
##                     3rd Qu.:1454.19   3rd Qu.:118.83  
##                     Max.   :2573.68   Max.   :136.79

Indice de Precios Vivienda Usada

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

plot(SerieIQY)

IP <- ts(SerieIQY[,2],start = c(1988,1), frequency = 4)
class(IP)
## [1] "ts"
ts_plot(IP)
IP <- ts(SerieIQY[,2],start = c(1988,5), frequency = 12)
class(IP)
## [1] "ts"
ts_plot(IP)
ts_seasonal(IP, type = "all")