结果:找到“ener data”相关内容120个,排序为按回复时间降序,搜索更多相关帖子请点击“高级”
Stata data generation
0 个回复 - 615 次查看
想设一个变量B使得B=1的概率为50%,B=-1的概率也为50%。
用的代码是gen rand = uniform()
gen B = cond(rand < .5, -1, 1)
不过发现并不能是概率正好为50%,请问一下各位大佬们有没有更好的方法
2020-5-6 12:18 - 表情包小王子 - 计量经济学与统计软件
求助:data generation
1 个回复 - 694 次查看
作业遇到了难题恳请大佬们用Stata帮忙
G
enerate 2,000 observations of ln(𝑍), which can be interpreted as productivity shocks and follows
normal distribution with mean 0.5 and standard deviatio ...
2020-4-7 16:49 - 表情包小王子 - 计量经济学与统计软件