sim.list.fun: Data generation

Description Usage Arguments Details Value Author(s) References Examples

View source: R/sim.list.fun.R

Description

Generate simulated data for SOLID method

Usage

1
sim.list.fun(nn,K,p.x,cor,beta0)

Arguments

nn

sample size

K

number of blocks

p.x

dimension of independent variables x

cor

correlation between x

beta0

beta coefficient

Details

This function generates the data for SOLID method

Value

dat.list returns generated data

Author(s)

Chuan Hong

References

Hong, C., Wang, Y. and Cat T. (2019). A Divide-and-Conquer Method for Sparse Risk Prediction and Evaluation (under revision).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
N=1e5
p.x=50
K=10
n=N/K
niter=3
cor=0
b0=-8
bb = c(1, 0.8, 0.4, 0.2, 0.1)
beta0 = c(b0, bb, rep(0, p.x - length(bb)))
dat.list=sim.list.fun(nn=N,K=10,p.x=50,cor=0.2,beta0)

ChuanHong/solid-copy documentation built on Dec. 17, 2021, 2:05 p.m.