R/data.R

#' World Happiness Report
#'
#' Datasets \code{happiness_train} and \code{happiness_test} are real data from the
#' World Happiness Reports. Happiness is scored according to economic production,
#' social support, etc. \code{happiness_train} accumulates the data from years 2015-2018,
#' while \code{happiness_test} is the data from the year 2019, which imitates the 
#' out-of-time validation.
#' 
#' Source: \href{https://www.kaggle.com/unsdsn/world-happiness}{World Happiness Report at Kaggle.com}
#' 
#' The following columns: GDP per Capita, Social Support, Life Expectancy, 
#' Freedom, Generosity, Corruption describe the extent to which these factors
#' contribute in evaluating the happiness in each country. Variables:
#' 
#' \itemize{
#' \item \strong{score} - target variable, continuous value between 0 and 10 (regression) 
#' \item gdp_per_capita
#' \item social_support
#' \item healthy_life_expectancy
#' \item freedom_life_choices
#' \item generosity
#' \item perceptions_of_corruption
#' }
#'
#' @aliases happiness_train happiness_test
#' @docType data
#' @name happiness_train
#' @usage data(happiness_train); data(happiness_test)
#' @format \code{happiness_train}: a data frame with 625 rows and 7 columns, \code{happiness_test}: a data frame with 156 rows and 7 columns
NULL

Try the modelStudio package in your browser

Any scripts or data that you put into this service are public.

modelStudio documentation built on March 7, 2023, 6:56 p.m.