HomUHet.sim.beta: simulates homogeneous and heterogeneous coefficients of...

Description Usage Arguments Value

View source: R/HomUHet.R

Description

this function outputs matrix of coefficients of predictors

Usage

1
HomUHet.sim.beta(J, K, n_homo, n_heter, level = c("l", "m", "h"))

Arguments

J

The total number of predictors including the predictors with homogeneous and heterogeneous effects and the predictors without effects

K

The number of studies

n_homo

the number of homogeneous coefficients

n_heter

the number of heterogeneous coefficients

level

the level of heterogeneity in the heterogeneous coefficients, where "l" stands for low, "m" stands for medium and "h" stands for high.

Value

the simulated coefficient matrix and miscellenance information about it

beta

the K x J coefficient matrix

J

the number of predictors including both predictors which have effects and which do not

K

the number of studies

homo_index

a vector containing the column numbers of homogeneous coefficients in the coefficient matrix

heter_index

a vector containing the column numbers of homogeneous coefficients in the coefficient matrix


Pei-Yang/HomUHet documentation built on Dec. 18, 2021, 6:46 a.m.