Publications by José Roberto Velásquez González VG16027
Practica
Creacion de Matrices Matriz y #Generacion de la matriz y matriz_y<-matrix(data = c(20,30,36,24,40), nrow = 5, ncol = 1,byrow = TRUE) colnames(matriz_y)<-c("y") print(matriz_y) ## y ## [1,] 20 ## [2,] 30 ## [3,] 36 ## [4,] 24 ## [5,] 40 Matriz x matriz_x<-cbind(rep(1,5),matrix(data =c(4,10,3,8,6,11...
145 sym R (768 sym/8 pcs)
Prueba para clase
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 t...
594 sym R (268 sym/2 pcs) 1 img
Guía Practica
Ejercicio 1 Numeral 1 library(magrittr) options(scipen = 9999999) load("C:/Users/Alex Ramos/Desktop/Ciclo5/Econometria/Nueva carpeta/Guia1/modelo_ventas.RData") matriz_x_1<-model.matrix(modelo_ventas) matriz_xx_1<-t(matriz_x_1)%*%matriz_x_1 # Matriz A matriz_A_1<-solve(matriz_xx_1)%*%t(matriz_x_1) print(matriz_A_1) ## ...
1348 sym R (2754833 sym/54 pcs) 2 tbl
Autocorrelacion
Importacion de datos (Generar la varaible resiudos) options(scipen = 999999) library(wooldridge) data(hprice1) head(force(hprice1),n=5 ) ## price assess bdrms lotsize sqrft colonial lprice lassess llotsize lsqrft ## 1 300 349.1 4 6126 2438 1 5.703783 5.855359 8.720297 7.798934 ## 2 370 351.5 3 9903 2076 ...
390 sym R (2478 sym/10 pcs) 2 tbl
Colinealidad
Importacion de datos (Generar la varaible resiudos) options(scipen = 999999) library(wooldridge) data(hprice1) head(force(hprice1),n=5 ) ## price assess bdrms lotsize sqrft colonial lprice lassess llotsize lsqrft ## 1 300 349.1 4 6126 2438 1 5.703783 5.855359 8.720297 7.798934 ## 2 370 351.5 3 9903 2076 ...
327 sym R (3768 sym/26 pcs) 3 img 1 tbl
Pruebas de normalidad
Importacion de datos (Generar la varaible resiudos) library(wooldridge) data(hprice1) head(force(hprice1),n=5 ) ## price assess bdrms lotsize sqrft colonial lprice lassess llotsize lsqrft ## 1 300 349.1 4 6126 2438 1 5.703783 5.855359 8.720297 7.798934 ## 2 370 351.5 3 9903 2076 1 5.913503 5.862210 9...
519 sym R (1090 sym/10 pcs) 1 img 1 tbl
Heterocedasticidad
Importacion de datos (Generar la varaible resiudos) options(scipen = 999999) library(wooldridge) data(hprice1) head(force(hprice1),n=5 ) ## price assess bdrms lotsize sqrft colonial lprice lassess llotsize lsqrft ## 1 300 349.1 4 6126 2438 1 5.703783 5.855359 8.720297 7.798934 ## 2 370 351.5 3 9903 2076 ...
408 sym R (1676 sym/7 pcs) 1 img 2 tbl
Modelos corregidos con estimadores HAC
Estimacion del modelo options(scipen = 999999) library(foreign) datos_regresion <- read.dta("https://stats.idre.ucla.edu/stat/data/crime.dta") modelo_crime<-lm(crime~poverty+single,data=datos_regresion) print(modelo_crime) Call: lm(formula = crime ~ poverty + single, data = datos_regresion) Coefficients: (Intercept) poverty single -1368.189 ...
601 sym R (2036 sym/12 pcs) 1 tbl
Parcial_2_Diferido
Ejercicio 1 library(readr) load("C:/Users/MINEDUCYT/Downloads/6-2.RData") mat_x<-(X6_2) Matriz de Correlacion y pruebas de Barlett y KMO #Matriz de correlación library(PerformanceAnalytics) ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package:base...
1412 sym R (14920 sym/73 pcs) 5 img 5 tbl
Parcial_2_Diferido
Ejercicio 1 library(readr) load("C:/Users/MINEDUCYT/Downloads/6-2.RData") mat_x<-(X6_2) Matriz de Correlacion y pruebas de Barlett y KMO #Matriz de correlación library(PerformanceAnalytics) ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following objects are masked from 'package:base...
1207 sym R (7731 sym/50 pcs) 5 img 4 tbl