Skip to content
Prev 74712 / 398502 Next

converting stata's by syntax to R

try
#sort the data ,as the stata's byable command does
#equall your stata command ,but return a list.
#to make the list to be a matrix-like result.
  fam  wt keep
1   1 1.0    1
2   2 1.0    1
3   3 0.4    0
4   4 0.4    0

	

======= 2005-08-01 22:24:27 ÄúÔÚÀ´ÐÅÖÐÐ´µÀ£º=======
= = = = = = = = = = = = = = = = = = = =
			


 

2005-08-01

------
Deparment of Sociology
Fudan University

Blog:http://sociology.yculblog.com