上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 186 下一页
摘要: use cfps2014adult_201906, clear label list brow if fid10 8 // inlist(z,a,b,.….)语法描述:当z满足a,b,….中的任何一个,则返回值为1,否则为0。所有参数必须是实数或者字符型数据, // 其中数值型参数的个数需要在2~2 阅读全文
posted @ 2023-03-10 06:02 myrj 阅读(370) 评论(0) 推荐(0)
摘要: https://www.lianxh.cn/news/2916ae8363459.html https://www.xiaohongshu.com/explore/62fc6f8c00000000140361fa use cfps2018famecon_202101,clear keep fid18 阅读全文
posted @ 2023-03-09 21:02 myrj 阅读(134) 评论(0) 推荐(0)
摘要: >>> attr={"class":"avdata card","data-hash-id":"data-hash-id"} >>> attr.keys() dict_keys(['class', 'data-hash-id']) >>> list(attr.keys()) ['class', 'd 阅读全文
posted @ 2023-03-09 16:43 myrj 阅读(62) 评论(0) 推荐(0)
摘要: .edit //编辑查看当前数据 右击任意一数据,选择"数据"--"值标签"--可选择:从值标签赋值 附加值标签给变量 隐藏所有值标签等相关操作 //从值标签赋值:将13条观测值的tb1m_a_c9 利用值标签修改为-2 . replace tb1m_a_c9 = -2 in 13 . replac 阅读全文
posted @ 2023-03-08 14:45 myrj 阅读(1578) 评论(0) 推荐(0)
摘要: //字母小写转大写 . disp strupper("mybook") MYBOOK . disp strupper("da") DA //字母大写转小写 . disp strlower("ASDF") asdf //每个单词首字母大写 . disp strproper("this is a boo 阅读全文
posted @ 2023-03-08 10:36 myrj 阅读(706) 评论(0) 推荐(0)
摘要: //stritrim(s1)将s1中的多个连续空格缩减为一个空格 . disp stritrim("good 123") good 123 //strltrim(s1)将s1中左侧的空格删除 . disp strltrim(" good 123") good 123 //strltrim(s1)将s 阅读全文
posted @ 2023-03-08 10:18 myrj 阅读(1396) 评论(0) 推荐(0)
摘要: *split字符分隔 *1,2,3 -- > 1 2 3 clear //清内存 set obs 5 //设置5个样本 gen v1 = "1 2 3" //建立新变量,v1,其值都是"1 2 3" split v1,gen(a) //分隔v1,建立以a开头后面是分隔字符的变量名,空格是默认分隔符 阅读全文
posted @ 2023-03-08 08:11 myrj 阅读(305) 评论(0) 推荐(0)
摘要: //清除内存 clear //设置5个样本 set obs 5 //增加变量v1,都是this is the day gen v1 = "this is the my is day" //增加新变量,v1_replace,其值是替换v1中的第一个is为X gen v1_replace = subin 阅读全文
posted @ 2023-03-08 07:56 myrj 阅读(445) 评论(0) 推荐(0)
摘要: local sj=subinstr(subinstr("`c(current_time)'",":","",.)," ","",.) local wjma="`sj'" set seed `wjma' clear local shu= int(100*runiform() ) // local xm 阅读全文
posted @ 2023-03-08 07:46 myrj 阅读(51) 评论(0) 推荐(0)
摘要: local sj=subinstr(subinstr("`c(current_time)'",":","",.)," ","",.) local wjma="`sj'" set seed `wjma' clear local shu= int(100*runiform() ) // local xm 阅读全文
posted @ 2023-03-07 21:06 myrj 阅读(46) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 186 下一页