simu: Example Dataset to fit the regression Contains five variables

simuR Documentation

Example Dataset to fit the regression Contains five variables

Description

Example Dataset to fit the regression Contains five variables

Usage

simu

Format

A dataframe with 300 rows and 4 variables The data was generated as follows:

Source

using the function from package

Examples

# how to generate the data
n <- 500
lambda <- 1
beta <- c(2.5, -2, 3)
X <- cbind(runif(n), runif(n), runif(n))
eta <- X %*% as.matrix(beta)
md <- exp(eta)
simu <- chenreg::rchen(n, md, lambda, tau = 0.7)


AlissonRP/chenReg documentation built on July 20, 2023, 4:50 a.m.