powered by
Generate latent variable dependent network.
latent.netdep(n.node, rho = 0.3, dep.factor = 1, dep.range = c(-5, 5))
The number of nodes in network.
correlation coefficient between continuous observations and latent factor .
multiplicative factor applied to.
If dep.factor < 0 Then \(A_ij\) \(~\) Bern (logistic ( dep.factor*| X_i - X_j |))
dep.factor
If dep.factor \(\ge\) 0Then \(A_ij\) \(~\) Bern (logistic ( dep.factor / | X_i - X_j |))
a vector specifying lower bound and upper bound for dep.factor*| X_i - X_j |. Defaults to c(-5, 5).
c(-5, 5)
an undirected and binary igraph object G having both \(Y\) and \(U\) as nodal attributes.
igraph
G
V(G)$outcome
one-dimensional continuous observations.
V(G)$latent
one-dimensional continuous latent variable dependent on V(G)$Y through rho.
V(G)$Y
rho
# NOT RUN { library(netdep) library(MASS) library(mvrtn) library(igraph) G = latent.netdep(n.node = 100, rho = 0.5, dep.factor = 1) # }
Run the code above in your browser using DataLab