Mensaje de warning en data de regresión
Publicado por Albert (1 intervención) el 01/08/2020 05:41:35
Estoy trabajando con la sgte data en RStudio (version1.3.1056):
https://archive.ics.uci.edu/ml/machine-learning-databases/00397/LasVegasTripAdvisorReviews-Dataset.csv
Mi objetivo es estimar el modelo de regresión lineal multiple en caret.
Por ello hago lo sgte:
Luego de correr la linea donde está vegas.lm me sale en consola:
> vegas.lm <- train(Score ~ ., data = vegas.data, method = "lm")
There were 25 warnings (use warnings() to see them)
Y cuando averiguo de que tratan los warning me dice que son:
> warnings()
Warning messages:
1: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
2: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
3: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
4: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
(Asi hasta 25)
Ojalá puedan ayudarme a descifrar o explicar porqué me sale esa advertencia. No entiendo a qué se debe.
De antemano muchas gracias por su atención y apoyo. Muchas gracias.
https://archive.ics.uci.edu/ml/machine-learning-databases/00397/LasVegasTripAdvisorReviews-Dataset.csv
Mi objetivo es estimar el modelo de regresión lineal multiple en caret.
Por ello hago lo sgte:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
vegas<- read.csv("LasVegasTripAdvisorReviews-Dataset.csv",
sep=";", header=T,stringsAsFactors = T)
head(vegas)
dim(vegas)
attach(vegas)
vegas.data <- cbind(vegas[,c(1:4)], vegas[,c(6:20)], Score)
head(vegas.data)
dim(vegas.data)
#Verificando la existencia y patrón de missing values
library(mice)
md.pattern(vegas.data,plot=F)
#---------- Regresión Lineal Múltiple en caret ---------------#
library(caret)
vegas.lm <- train(Score ~ ., data = vegas.data, method = "lm")
warnings()
summary(vegas.lm)
Luego de correr la linea donde está vegas.lm me sale en consola:
> vegas.lm <- train(Score ~ ., data = vegas.data, method = "lm")
There were 25 warnings (use warnings() to see them)
Y cuando averiguo de que tratan los warning me dice que son:
> warnings()
Warning messages:
1: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
2: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
3: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
4: In predict.lm(modelFit, newdata) :
prediction from a rank-deficient fit may be misleading
(Asi hasta 25)
Ojalá puedan ayudarme a descifrar o explicar porqué me sale esa advertencia. No entiendo a qué se debe.
De antemano muchas gracias por su atención y apoyo. Muchas gracias.
Valora esta pregunta


0