Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2023-06-09 15:56:45
Size: 586
Comment:
Revision 4 as of 2025-10-24 17:11:58
Size: 626
Comment: Rewrite
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''`fralias`''' command provides a read-only view of values in a [[Stata/FrLink|linked frame]]. '''`-fralias-`''' provides a read-only view of values in a [[Stata/FrLink|linked frame]].
Line 24: Line 24:
There is also a '''`suffix(stub)`''' option.
Line 32: Line 34:
[[https://www.stata.com/manuals/dfralias.pdf|Stata manual for fralias]] [[https://www.stata.com/manuals/dfralias.pdf|Stata manual for -fralias-]]

Stata FrAlias

-fralias- provides a read-only view of values in a linked frame.


Usage

fralias add foo bar baz, from(linkvar)
fralias add foo newbar=bar, from(linkvar)

To create an alias for all variables while adding a prefix, try:

fralias add *, from(linkvar) prefix(merge_)

There is also a suffix(stub) option.

To list all aliased variables, try fralias describe.


See also

Stata manual for -fralias-


CategoryRicottone

Stata/FrAlias (last edited 2025-10-24 17:11:58 by DominicRicottone)