Learn R Programming

lvm4net (version 0.3)

goflsm: Goodness-of-Fit diagnostics for LSM model

Description

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

Usage

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

lsm, simulateLSM, plot.gofobj, print.gofobj

Examples

Run this code
# NOT RUN {
Y <- network(15, directed = FALSE)[,]

modLSM <- lsm(Y, D = 2) 
myGof <- goflsm(modLSM, Y = Y)
# }

Run the code above in your browser using DataLab