0.3.(t mod(T + 1))−(t mod(10)).sin(t/pi)
where t reflects a time period of T, and T reflects the total number of periods. Let's simulate part of it really fast.
Code:
clear set obs 100 // 100 units qui g id = _n // our ID expand 2000 // 2000 time periods qbys id: g time = _n // 1...2000
More concretely, does this mean we'd do
Code:
su time, mean loc max = r(max)+1 qbys id: g y = 0.3 * mod(time,`max') - /// mod(time,10)*sin(time/_pi)
0 Response to Modulo, Mathematics, and Stata Notation
Post a Comment