R/datadoc.R

#' A demo dataset
#'
#' A simulated dataset with covariate matrix \code{x} of size 30 x 5 and an outcome vector \code{y} of length 30.
#'
#'
#' @name dat
#' @keywords datasets
#' @usage data(dat)
#'
#' @format A list with 2 items:
#' \describe{
#'   \item{x}{Covariate matrix}
#'   \item{y}{Outcome vector}
#' }
#'
#' @details \code{x} is generated from standard normal distribution. \code{y} is generated from Tweedie distribution with mean equal to exp(sin(x) %*% (6, -4, 0, 0, 0)). Only the first two variables are associated with the outcome.
#' @docType data
NULL

Try the ktweedie package in your browser

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

ktweedie documentation built on Oct. 15, 2023, 1:07 a.m.