= Stata FrLink = The '''`frlink`''' command joins data across [[Stata/Frames|frames]]. <> ---- == Usage == {{{ frlink 1:1 KEYVARS, frame(foo) frlink m:1 KEYVARS, frame(foo) }}} If the frame has differently-named key variables, try: {{{ frlink 1:1 uid, frame(foo subid) frlink m:1 uid, frame(foo subid) }}} In either case, a '''link variable''' is created with the same name as the frame (`foo` in this case). To rename this variable, use the '''`generate(varname)`''' option. `frlink dir` lists the available link variables. `frlink describe LINKVAR` describes a link variable. A read-only view of values in the linked frame can be accessed like: {{{ generate foobar = foo + frval(linkvar, bar) }}} See also the [[Stata/FrAlias|fralias]] and [[Stata/FrGet|frget]] commands. ---- == See also == [[https://www.stata.com/manuals/dfrlink.pdf|Stata manual for frlink]] ---- CategoryRicottone