Re: ACCEPT question
Hi Jackie: You are correct that the comma (',') in ACCEPT command works as
an "AND" so in your case it includes only those records which satisfy both
conditions i.e where DVID=1 *and* CYC=1. If you want to evaluate 'OR'
instead, the only way I can think of is it give multiple ACCEPT commands.
ACCEPT = (CYC.EQ.1)
ACCEPT = (DVID.EQ.1).
This should include all those records where either condition is true.
Cheers,
Manisha
Quoted reply history
On Wed, Jul 6, 2011 at 6:59 AM, Jia Ji <[email protected]> wrote:
> Hi,
>
> I encounted a problem when using ACCEPT in NONMEM. In my dataset, I want
> to extract observations with DVID=1 *or* CYC=1. When I used
> ACCEPT=(DVID.EQ.1,CYC.EQ.1), it gave a total number of obs as the number of
> obs with CYC=1 only, but much less than the number of obs with either DVID=1
> or CYC=1. But if I want to extract observations with DVID=1 *and* CYC=1,
> it works fine using IGNORE=(DVID.NE.1,CYC.NE.1). So I don't understand why
> ACCEPT is not working here. I attached a sample of my dataset and control
> stream. I would highly appreciate any feedback/advice on my question. Thank
> you very much!
>
> Jackie
>
> ****************************
> Dataset
>
> #READ ID CYC DAY DV TIME DVID MDV
> . 49102 1 1 0 0 1 0 . 49102 1 1 . 0 3 1 . 49102 1 8 1 7 1 0 . 49102 1
> 15 0 14 1 0 . 49102 1 22 0 21 1 0 . 49102 2 1 0 42 1 0 # 49102 2 8 . 49 1
> . . 49102 2 8 1 49 3 0 # 49102 2 15 . 56 1 .
>
> Control stream
>
> $PROBLEM RUN101
> $INPUT READ ID CYC DAY DV TIME DVID MDV
> $DATA ***.csv IGNORE=# ACCEPT=(DVID.EQ.1,CYC.EQ.1)
> $PRED
> ...
>