Description Usage Arguments Value Examples
View source: R/generate.data.R
Generate simulated dataset for regression with network-linked data
1 | generate.data(V, K, p = 2, inter.p = 0.8, between.p = 0.2)
|
V |
number of vertices |
K |
number of communities |
p |
dimension of covariates |
inter.p |
in-community link probability |
between.p |
out-community link probability |
A list
object comprising:
X |
Design matrix of predictors. |
Y |
Response vector. |
Adj |
Adjacency matrix. |
1 2 3 4 | V <- 100
K <- 3
dataset <- generate.data(V, K)
str(dataset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.