0

Global effort 1 rand(n 1) rand(n 1)
Global collab_skill 1.5 rand(n 1) rand(n 1)

CD "university/groupprojects/educ"

Do "function"

Set obs 1
Gen project_ambition = 1
Define label project_ambition 1 "high", add
Gen hype = project_ambition
Define label hype 1 "high, add
Egen output=function[min(`collab_skill');llmean(`effort')]
Egen success = 1 if output>=hype; else success =0

Su success

0 0 0

Comments
Add Comment