Stata 15 help for mf_moptimize_init_mlopts

Title

[M-5] moptimize_init_mlopts() -- ml options parser for moptimize()

Syntax

(void) moptimize_init_mlopts(M, string scalar mopts)

Description

moptimize_init_mlopts() applies the options in mopts to M, where mopts is assumed to contain maximize options already parsed by the mlopts command.

Remarks

You have a Stata program with syntax

syntax varlist [, program_options *]

and are parsing the standard maximize options using

mlopts mlopts options, `options'

Within your Mata code, you create an moptimize() object

M = moptimize_init()

and somewhere afterward, you apply the specified options in macro mlopts to the moptimize() object M by typing

moptimize_init_mlopts(M, st_local("mlopts"))

Conformability

moptimize_init_mlopts(M, mopts) M : 1 x 1 mopts: 1 x 1

Diagnostics

The first argument M must be the returned value from moptimize_init().

The string scalar mopts should contain space-delimited options found in [P] mlopts.

Source code

moptimize_init_mlopts.mata


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index