Code:
. frames reset
. *
.
. * Begin here
.
. *
.
.
.
. frame create Integrals byte(pid grp) double auc
.
.
.
. quietly levelsof participantid , local(pids)
no variables defined
r(111);
.
.
.
. foreach pid of local pids {
2.
.
.
. summarize group if participantid == `pid', meanonly
3.
. local grp `r(min)'
4.
.
.
. quietly integ parasitaemia time if participantid == `pid' // , trapezoid
5.
. frame post Integrals (`pid') (`grp') (r(integral))
6.
. }
no variables defined
r(111);
.
.
.
. frame Integrals: list, noobs
.
.
.
. exit
no; dataset in memory has changed since last saved
There are unsaved data in frame Integrals. Save the data or specify option clear to exit anyway.
r(4);
.

Comment