Displaying 2 results from an estimated 2 matches for "cps_rq".
2013 Sep 22
2
colores
Como usas la función image puedes consultar la ayuda ?image o help(image) y
encontrarás el siguiente ejemplo donde se usa un diferente color Palette
(mencionada por pepeceb en su respuesta).
x <- 10*(1:nrow(volcano))
y <- 10*(1:ncol(volcano))
image(x, y, volcano, col = terrain.colors(100), axes = FALSE)
# O puedes usar directamente el número para indicar el color
image(x, y, volcano, col =
2013 Sep 22
0
colores
...ot;)
cps <- CPS1985
cps [1:10,]
dim( cps)
names( cps)
library("quantreg")
#regresion usual
cps_lm <- lm(log(wage) ~ experience + I(experience^2) +
+ education, data = cps)
#regresion por quantiles, tau son los cuantiles seleccionados
cps_rq <- rq(log(wage) ~ experience + I(experience^2) +
+ education, data = cps, tau = seq(0.2, 0.8, by = 0.15))
#we compute predictions from both models for a new data set cps2, where
education is held constant at its mean and experience varies over the range
of the original...