You can use the !SET qualifier to transform the generation factor into
another value and then filter on that.
For example, if you want generations 3, 6, and 9, I think you could go
something like:
Title line
Gen 16 Data
Gen369 2 !=V1 !SET 1 1 2 1 1 2 1 1 2 1 1 1 1 1 1 1
Datafile.data !FILTER Gen369 !SELECT 2
If you want only stuff after a set generation then you could specify the
generation from the command line and drop
Title line
Gen 16 Data
GenSel !=V1 !>$A !D 0
Datafile.data
*****************************************************
Greg Dutkowski, Forest Geneticist,
CRC-Sustainable Production Forestry
School of Plant Science, University of Tasmania
Private Bag 55, HOBART 7001
Tel +61 (3)6226 2213 , Fax (3)62262698, Mob 0408238495
-----Original Message-----
From: ASReml users discussion group [mailto:ASREML-L_at_AGRIC.NSW.GOV.AU]On
Behalf Of Alastair Wilson
Sent: Wednesday, 17 November 2004 1:44 AM
To: ASREML-L_at_AGRIC.NSW.GOV.AU
Subject: Fw: filtering data
Hello -
I have a quick question regarding filtering data. I'm running some animal
models and want to do this in some subsets as well as in the full data set.
For example I have data on animals from 15 generations and using the data
file qualifier
!FILTER generation !SELECT 4
I can restrict the data set to just those animals in generation 4.
However, is there a way to specify a range of values to accept in the
"generation" field e.g. if I wanted to use animals in all generations
greater than 4, or in generations 4 - 8? Obviously I could build different
data files for these subsets but I am hoping there might be an easier way.
Cheers,
Alastair
Alastair J Wilson PhD
Postdoctoral Research Fellow
Alastair.Wilson_at_ed.ac.uk
tel. 0131 6507287
Institute of Evolutionary Biology
School of Biological Sciences
The University of Edinburgh
Ashworth Laboratories
The King's Buildings
West Mains Road
Edinburgh EH9 3JT, UK
Received on Wed Nov 17 2004 - 09:52:50 EST
This webpage is part of the ASReml-l discussion list archives 2004-2010. More information on ASReml can be found at the VSN website. This discussion list is now deprecated - please use the VSN forum for discussion on ASReml. (These online archives were generated using the hypermail package.)