会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
myrj
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
49
50
51
52
53
54
55
56
57
···
187
下一页
2023年3月18日
stata调用python函数,利用函数返回值
摘要: //stata调用python,引用py文件中的函数 //stata中设置python路径 set python_exec d:\python37\python.exe //stata中调用python python //引入函数 from myfunction1 import add_number
阅读全文
posted @ 2023-03-18 10:35 myrj
阅读(274)
评论(0)
推荐(0)
2023年3月17日
md5解密 python
摘要: MD5是一种不可逆的哈希算法,这意味着您不能直接从MD5哈希值“解密”出原始数据。然而,您可以尝试使用暴力破解或查找表(如彩虹表)来猜测原始数据。 暴力破解是一种尝试所有可能的输入组合,直到找到与给定哈希值匹配的输入的方法。这种方法在密码空间较小的情况下可能有效,但在密码空间较大的情况下可能非常耗时
阅读全文
posted @ 2023-03-17 18:27 myrj
阅读(3255)
评论(0)
推荐(0)
2023年3月16日
python sha256加密
摘要: import hashlib def sha256_encrypt(data): sha256 = hashlib.sha256() sha256.update(data.encode('utf-8')) return sha256.hexdigest() data = "Hello, world!
阅读全文
posted @ 2023-03-16 22:17 myrj
阅读(213)
评论(0)
推荐(0)
2023年3月15日
STATA: _n _N 应用 理解排序?
摘要: webuse dollhill2, clear gen n = _n gen N = _N 如果想要统计各个不同的年龄段中共多少人吸烟: by age (smokes), sort: generate wgta=pyears[_N] . by age (smokes), sort: generate
阅读全文
posted @ 2023-03-15 15:51 myrj
阅读(226)
评论(0)
推荐(0)
STATA:数据手工输入 保存 填充 循环
摘要: clear input ID year var1 var2 var3 1 2006 34 45 65 1 2007 45 43 41 1 2007 3 56 59 1 2008 39 54 76 1 2009 41 57 68 end save "data00.dta", replace use "
阅读全文
posted @ 2023-03-15 10:14 myrj
阅读(148)
评论(0)
推荐(0)
STATA:缺失值
摘要: stata 统计每行各个变量共有几个是缺失值: //增加新变量miss,统计当前行观测值有几个缺失值 egen miss=rowmiss(_all)
阅读全文
posted @ 2023-03-15 08:08 myrj
阅读(467)
评论(0)
推荐(0)
stata:tab命令举例
摘要: webuse hbp2, clear //不显示值标签,只显示实际保存值 tab race ,nolabel // // Race | Freq. Percent Cum. // + // 1 | 196 17.41 17.41 // 2 | 773 68.65 86.06 // 3 | 157 1
阅读全文
posted @ 2023-03-15 05:56 myrj
阅读(1563)
评论(0)
推荐(0)
2023年3月14日
C语言:%5.2f 含义
摘要: #include <stdio.h> main() { float a=-3.14153265; printf("%8.4f\n",a) ; printf("%7.4f\n",a) ; printf("%6.4f\n",a) ; printf("%5.4f\n",a) ; printf("%4.4f
阅读全文
posted @ 2023-03-14 20:41 myrj
阅读(697)
评论(0)
推荐(0)
2023年3月13日
C语言:整数赋值给字符型变量
摘要: #include <stdio.h> //整数赋值给字符型变量 //353转2进制:1 01100001 =256 64 32 1 353-256=97 main() { int n=353; char c; c=n; printf("%c %d %x",c,c,c); getchar(); }
阅读全文
posted @ 2023-03-13 21:43 myrj
阅读(238)
评论(0)
推荐(0)
stata:分类排序与求和
摘要: . bysort rep78: gen ab=_n . order ab,after(rep78) . bysort rep78: gen abb=sum(rep78) . order abb,after(rep78)
阅读全文
posted @ 2023-03-13 20:59 myrj
阅读(623)
评论(0)
推荐(0)
上一页
1
···
49
50
51
52
53
54
55
56
57
···
187
下一页
公告