Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从分布中生成随机数,以便这些数字对于组内的行是通用的?在不平衡面板中,有一个 family_id 变量,我想根据该变量使用 rtruncnorm 从截断的正态分布中生成随机数。
谢谢你。
Household_id 随机数 1 0.6 1 0.6 1 0.6 2 0.1 3 0.9 3 0.9 4 0.2 5 0.7 6 0.3 6 0.3
谢谢