simul: Simulation function This function is for simulating data

Description Usage Arguments Value

Description

Simulation function This function is for simulating data

Usage

1
simul(N = 1000, p = 500, p_true = 5, m1 = 100, knot = 10)

Arguments

N

sample size

p

number of parameters

p_true

number of true parameters

m1

default is 100

knot

the number of basis functions for non-linear predictors

Value

a list of the following values

*delta: event indicator *z: Covariate matrix *time: the death time *p: number of variables *N: the sample size *knot: the number of basis functions for non-linear predictors


LingfengLuo0510/CoxAdditive documentation built on May 7, 2019, 6:56 p.m.