NMseed: Add seed string to simulation model data.table

View source: R/NMseed.R

NMseedR Documentation

Add seed string to simulation model data.table

Description

This is an internal NMsim function.

Usage

NMseed(models, nseeds, dist, values, fun.seed = seedFunDefault)

Arguments

models

A data.frame containing model paths etc as created by NMsim().

nseeds

Number of seeds in each simulation control stream. Default is to match length of dist.

dist

Distribution of random sources. These character strings will be pasted directly into the Nonem control streams after the seed values. Default is "" which means one normal distribution. dist=c("","UNIFORM") will give two seeds with random sources following a normal and a uniform distribution.

values

Optionally, seed values. This can be a data.frame with as many columns as random sources.

Value

An updated data.table with simulation model information including seed strings.


NMsim documentation built on Nov. 2, 2024, 9:06 a.m.