dat {ktweedie}R Documentation

A demo dataset

Description

A simulated dataset with covariate matrix x of size 30 x 5 and an outcome vector y of length 30.

Usage

data(dat)

Format

A list with 2 items:

x

Covariate matrix

y

Outcome vector

Details

x is generated from standard normal distribution. 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.


[Package ktweedie version 1.0.3 Index]