Displaying 6 results from an estimated 6 matches for "16187dd6002".
2017 Sep 29
5
Converting SAS Code
...,
My statistical analysis training up until this point has been entirely done
in SAS. The code I frequently used was:
*Yield Champagin;
data yield;
set stress;
if field='YV' then delete;
if field='HB' then delete;
if barcode='16187DD4015' then delete;
if barcode='16187DD6002' then delete;
if barcode='16187DD2007' then delete;
if barcode='16187DD5016' then delete;
if barcode='16187DD8007' then delete;
if barcode='16187DD7010' then delete;
if barcode='16187DD7007' then delete;
if barcode='16187DD8005' then delete;...
2017 Sep 29
0
Converting SAS Code
For the initial data step, assuming a data frame named stress already exists, and using base R, you can start with something like this:
barcodes.to.delete <- c('16187DD4015', '16187DD6002', {complete the comma-delimited vector of barcodes you don't want} )
yield <- subset(stress, !(barcode %in% barcodes.to.delete) )
yield <- subset(yield , !(field %in% c('YY','HB') )
## the above three lines could be done in a single line, but it would be long, ug...
2017 Sep 29
4
Converting SAS Code
...>>
>> *Yield Champagin;
>>
>> data yield;
>>
>> set stress;
>>
>> if field='YV' then delete;
>>
>> if field='HB' then delete;
>>
>> if barcode='16187DD4015' then delete;
>>
>> if barcode='16187DD6002' then delete;
>>
>> if barcode='16187DD2007' then delete;
>>
>> if barcode='16187DD5016' then delete;
>>
>> if barcode='16187DD8007' then delete;
>>
>> if barcode='16187DD7010' then delete;
>>
>> if barc...
2017 Sep 29
0
Converting SAS Code
...one
> in SAS. The code I frequently used was:
>
> *Yield Champagin;
>
> data yield;
>
> set stress;
>
> if field='YV' then delete;
>
> if field='HB' then delete;
>
> if barcode='16187DD4015' then delete;
>
> if barcode='16187DD6002' then delete;
>
> if barcode='16187DD2007' then delete;
>
> if barcode='16187DD5016' then delete;
>
> if barcode='16187DD8007' then delete;
>
> if barcode='16187DD7010' then delete;
>
> if barcode='16187DD7007' then dele...
2017 Sep 29
0
Converting SAS Code
...>>> data yield;
>>>
>>> set stress;
>>>
>>> if field='YV' then delete;
>>>
>>> if field='HB' then delete;
>>>
>>> if barcode='16187DD4015' then delete;
>>>
>>> if barcode='16187DD6002' then delete;
>>>
>>> if barcode='16187DD2007' then delete;
>>>
>>> if barcode='16187DD5016' then delete;
>>>
>>> if barcode='16187DD8007' then delete;
>>>
>>> if barcode='16187DD7010' then d...
2017 Sep 29
2
Converting SAS Code
...>>> data yield;
>>>
>>> set stress;
>>>
>>> if field='YV' then delete;
>>>
>>> if field='HB' then delete;
>>>
>>> if barcode='16187DD4015' then delete;
>>>
>>> if barcode='16187DD6002' then delete;
>>>
>>> if barcode='16187DD2007' then delete;
>>>
>>> if barcode='16187DD5016' then delete;
>>>
>>> if barcode='16187DD8007' then delete;
>>>
>>> if barcode='16187DD7010' then d...