Learn R Programming

nonmemica (version 1.0.8)

tweak.default: Tweak a Model by Default

Description

Tweaks a model by jittering initial estimates. Creates a new model directory in project context and places the model there. Copies helper files as well. Expects that x is a number. Assumes nested directory structure (run-specific directories).

Usage

# S3 method for default
tweak(
  x,
  project = getOption("project", getwd()),
  ext = getOption("modex", "ctl"),
  start = NULL,
  n = 10,
  include = ".def$",
  ...
)

Value

character: vector of names for models created

Arguments

x

object

project

project directory (can be expression)

ext

file extension for control streams

start

a number to use as the first modelname

n

the number of variants to generate (named start:n)

include

regular expressions for files to copy to new directory

...

pass ext to over-ride default model file extension

See Also

Other tweak: tweak.inits(), tweak.init(), tweak.model(), tweak()