stata中各种字符型变量的定义和使用

2024-11-13 08:55:55

1、gen where ="D" if foreign=="Domestic":origin replace where ="F" if foreign=="Foreign":origin 如果foreign的值为domestic则where的值为D,否则where的值为F

stata中各种字符型变量的定义和使用

3、显示where变量的详细信息

stata中各种字符型变量的定义和使用

5、显示model变量和modelwhere变量的值。 list make where model modelwhere

stata中各种字符型变量的定义和使用
猜你喜欢