#' @title reg_analysis function
#'
#' @description Data Analisys: linear regression model to evaluate the "tranquilizer use" variation due to the "alcohol use" change.
#'
#' It's necessary to import other packages if the are not installed.
#'
#' The output shows some significant estimates which allow us to understand how the model significative is.
#'
#'
#'
#' @author Francesca Grazia Radatti \email{francescaradatti97@gmail.com}
#'
#' @importFrom stats lm
#'
#'
#'
#' @export
#'
#' @return Linear regression model
#'
reg_analysis <- function() {
reg <- lm(data=Progettofgr::druguse, Progettofgr::druguse$alcohol.use~Progettofgr::druguse$tranquilizer.use)
sumreg <- summary(reg)
return(sumreg)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.