Title
tomata -- Make view matrices of Stata variables
Syntax
tomata [varlist] [if] [in] [, options ]
options description ------------------------------------------------- nomissing casewise exclusion of missing values -------------------------------------------------
Description
tomata creates separate view matrices for each variable specified or, if no variables are specified, all variables in the Stata dataset.
Options
nomissing specifies that observations that contain missing in any of the variables are to be excluded from all view matrices created.
Remarks
Use tomata from Stata's dot prompt, not from Mata's colon prompt.
tomata is intended for use when you are using Mata interactively; see [M-5] st_view() to create view matrices within programs.
For example, interactively, for teaching purposes, you wish to run a regression:
. sysuse auto, clear
. tomata mpg weight foreign, nomiss
. mata:
: y = mpg
: X = (weight, foreign, J(rows(weight), 1, 1))
: b = invsym(X'X)*X'y
: b
: end
Diagnostics
None.
Source code
tomata.ado.
Author
William Gould, StataCorp.
Also see
Online: help for [M-5] st_view()