Dear Kim,
If the data is coded 1 2 3 4 5
and you want 1 2 2 3 3
use
agegrp !SET 1 2 2 3 3
The brackets in the !SUB expression would have confused ASREML because it is
looking for a list.
The !SUB expression works quite differently and is designed for when
the data is say 2.3 4.5 99.2 101
and you want to recode to 1 2 3 4 respectively.
recode !SUB 2.3 4.5 99.2 101
would do that.
Arthur
> X-Authentication-Warning: lamb.chiswick.anprod.csiro.au: petidomo set sender
to asreml-owner@lamb.chiswick.anprod.csiro.au using -f
> Date: Tue, 25 Jan 2000 09:58:03 +1100
> To: asreml@chiswick.anprod.csiro.au
> From: Kim Bunter <kbunter@metz.une.edu.au>
> Subject: third time lucky!
> Mime-Version: 1.0
>
> I am obviously not good with addresses. Third time lucky in sending this -
> hope someone can help!
>
> Cheers
>
> Kim
>
> >Hi all,
> >
> >I'm sure Arthur has already told me how to do this , but would like to
> >group factors together according to value - and the syntax I've tried is
> >not working. Any ideas?
> >
> >eg. group 1yolds separately and group 2 with 3yr olds, and 4 with 5 year olds
> >
> >agegrp !SUB 1 (2,3) (4,5) #does not work..
> >
> >I have put commas in, taken them out, but never seem to get the right
> >number of groups even if asreml manages not to crash on a line like this.
> >(I am using the October 1999 version...).
> >
> >I would appreciate any help.
>
> Kim Bunter (M.Rur.Sc)
> PhD Student
> Animal Genetics and Breeding Unit
> University of New England
> Armidale, NSW, 2351
> AUSTRALIA
>
> Ph: (02) 6773 3788
> Fax: (02) 6773 3266
> email: kbunter@metz.une.edu.au
> --
> Asreml mailinglist archive: http://www.chiswick.anprod.csiro.au/lists/asreml
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Arthur Gilmour PhD mailto:Arthur.Gilmour@agric.nsw.gov.au
Principal Research Scientist (Biometrics) fax: <61> 2 6391 3899
NSW Agriculture <61> 2 6391 3922
Orange Agricultural Institute telephone work: <61> 2 6391 3815
Forest Rd, ORANGE, 2800, AUSTRALIA home: <61> 2 6362 0046
ASREML is still free by anonymous ftp from pub/aar on ftp.res.bbsrc.ac.uk
or point your web browser at ftp://ftp.res.bbsrc.ac.uk/pub/aar/
To join the asreml discussion list, send the message
subscribe
mailto:asreml-request@chiswick.anprod.CSIRO.au
To send messages to the list, mailto:asreml@chiswick.anprod.CSIRO.au
Asreml list archive: http://www.chiswick.anprod.csiro.au/lists/asreml
<> <> <> <> <> <> <>
"Christ Jesus came into the world to save sinners" I Timothy 1:15.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
--
Asreml mailinglist archive: http://www.chiswick.anprod.csiro.au/lists/asreml