This function produces goodness-of-fit diagnostics for LSM model.

goflsm(object, Y, Ysim = NULL, nsim = 100, seed, directed = NULL,
  stats = NULL, doplot = TRUE, parm = TRUE)

Arguments

object

object of class 'lsm'

Y

(N x N) binary adjacency matrix

Ysim

list containing simulated (N x N) adjacency marices. Default Ysim = NULL

nsim

number of simulations. Default nsim = 100

seed

for simulations

directed

if the network is directed or not. Default directed = NULL

stats

statistics used. Default stats = NULL

doplot

draw boxplot. Default doplot = TRUE

parm

do all the plots in one window. Default parm = TRUE

See also

Examples

Y <- network(15, directed = FALSE)[,] modLSM <- lsm(Y, D = 2) myGof <- goflsm(modLSM, Y = Y)