uscrime_int | R Documentation |
Us crime classic data table genetated from uscrime data.
data(uscrime_int)
An object of class symbolic_tbl
(inherits from tbl_df
, tbl
, data.frame
) with 46 rows and 102 columns.
Rodriguez O. (2013). A generalization of Centre and Range method for fitting a linear regression model to symbolic interval data using Ridge Regression, Lasso and Elastic Net methods. The IFCS2013 conference of the International Federation of Classification Societies, Tilburg University Holland.
data(uscrime_int)
car.data <- uscrime_int
res.cm.lasso <- sym.glm(
sym.data = car.data, response = 102, method = "cm", alpha = 1,
nfolds = 10, grouped = TRUE
)
plot(res.cm.lasso)
plot(res.cm.lasso$glmnet.fit, "norm", label = TRUE)
plot(res.cm.lasso$glmnet.fit, "lambda", label = TRUE)
pred.cm.lasso <- sym.predict(res.cm.lasso, response = 102, car.data)
RMSE.L(car.data$ViolentCrimesPerPop, pred.cm.lasso)
RMSE.U(car.data$ViolentCrimesPerPop, pred.cm.lasso)
R2.L(car.data$ViolentCrimesPerPop, pred.cm.lasso)
R2.U(car.data$ViolentCrimesPerPop, pred.cm.lasso)
deter.coefficient(car.data$ViolentCrimesPerPop, pred.cm.lasso)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.