Now that Stata 17 is out, use this thread to request features that you desire for Stata 18.
sladmin
sladmin
clear all input id fid strL name 1 . "John" 2 1 "Peter" 3 2 "Victoria" 4 2 "Simon" 5 4 "Gretta" 6 4 "Anna" 7 4 "Maria" end // using the same frame does not produce the desired result: frlink m:1 fid, frame(default id) frget fname=name , from(default) list id fid name fname, sepby(fid) drop default fname // assert fname=="John" in 2 // fails // using a copy in a different frame does produce the desired result: frame copy default reference frlink m:1 fid, frame(reference id) frget fname=name , from(reference) list id fid name fname, sepby(fid) assert fname=="John" in 2
clear all input long interview__id strL address 1 "123 Main St" 2 "456 Broadway St" 3 "789 Winter Hwy" 9 "101 Church St" end list frame create MEMBERS frame change MEMBERS input long interview__id byte mem__id strL mem_name int mem_age 1 1 "John SMITH" 39 1 2 "Mary SMITH" 32 1 3 "Peter SMITH" 7 2 1 "Jennet JONES" 19 2 2 "Kenneth JONES" 27 3 1 "Ted RYAN" 69 3 2 "Clara RYAN" 65 end list, sepby(interview__id) frlink m:1 interview__id, frame(default) frget address, from(default) list frame change default replace address="TEST" in 1 frame change MEMBERS list, sepby(interview__id) assert address=="TEST" in 3 assert address=="TEST" in 2 assert address=="TEST" in 1
Comment