generate_random_model: Generate a random model using Erdos Renyi game

View source: R/test_util.R

generate_random_modelR Documentation

Generate a random model using Erdos Renyi game

Description

Generate a random model using Erdos Renyi game

Usage

generate_random_model(
  num.samples = NULL,
  Temp = 1,
  num.nodes = 10,
  p.or.numedges = 0.6,
  type = "gnp",
  seed = NULL,
  plot.sampleQ = F,
  plot.graphQ = T
)

Arguments

num.samples

Optional number of samples specification

Temp

Adjustment parameter to bulk adjust the potentials

plot.sampleQ

Optional plot marginal node samples

Details

The function will generate a random model using the Erdos Renyi game. Added a "Temp" parameter for user to adjust the potentials in bulk. Also added sampling from the model.

The function will generate a random model along with a random sample

Value

A little data set


npetraco/CRFutil documentation built on Nov. 23, 2023, 11:30 a.m.