Description Usage Arguments Details Value Author(s) References Examples
Simulate data with graphical structure for generalized regression, which can be used in MNR(x,y,...)
for constructing confidence intervals and assessing p-values.
1 |
n |
Number of observations. |
p |
Number of variables. |
coef |
A p+1x1 vector. The first value denotes the intercept term and other p values denote the true regression coefficients for p variables. |
family |
Quantitative for family='gaussian' (default), binary (0-1) for family='binomial'. Survival data for family='cox'. |
We generate p variables from the following precision matrix, which is often been called "band" structure or "AR(2)" structure.
C_{i,j}=≤ft\{\begin{array}{ll} 0.5,&\textrm{if $≤ft| j-i \right|=1, i=2,...,(p-1),$}\\ 0.25,&\textrm{if $≤ft| j-i \right|=2, i=3,...,(p-2),$}\\ 1,&\textrm{if $i=j, i=1,...,p,$}\\ 0,&\textrm{otherwise.} \end{array}\right.
x |
Simulated data in a nxp design matrix, without an intercept. |
y |
The response vector of dimension nx1. Quantitative for family='gaussian', binary (0-1) for family='binomial'. For family='cox', y should be an object of class |
A |
The true adjacency matrix of variables in the design matrix x. |
Bochao Jiajbc409@gmail.com and Faming Liang
Liang, F., Xue, J. and Jia, B. (2018). Markov Neighborhood Regression for High-Dimensional Inference. Submitted to J. Amer. Statist. Assoc.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.