[FLR-list] help with XSA

laurie lauriekell at gmail.com
Thu Oct 2 15:30:22 CEST 2014


I would suggest to trim the index, extending the FLStock may not be 
appropriate if the sample size of older fish is small.
The range object was designed to trim different classes to make them 
consistent, in cases such as this.
Maybe we should add this.

Laurie

On 02/10/14 15:03, Iago Mosqueira wrote:
> The problem comes from the fact of having an index that covers more ages
> than the stock object, as the information on ages gets a bit messed up
> inside FLXSA. It could be more clever about it,  but the safest option
> is to trim the index object, or turn it into a plsugrou, although it
> will then be unused by FLXSA.ock
>
> So this works
>
> res <- FLXSA(hake.stk, trim(hake.idx[[1]], age=0:5))
>
> Can't you have an FLStock that goes up to age 6?
>
> Cheers,
>
>
> Iago
>
> On 02/10/14 12:37, Silvia Angelini wrote:
>> Both are TRUE.
>>   Silvia
>>
>> Il 02/10/2014 12:38, Iago Mosqueira ha scritto:
>>> Also, can you try
>>>
>>> validObject(stock)
>>>
>>> validObject(index)
>>>
>>>
>>> Iago
>>>
>>> On 02/10/14 12:30, laurie wrote:
>>>> XSA does not use the plusgroup, so truncate the index so maxage =4
>>>>
>>>> Laurie
>>>> On 02/10/14 12:25, Silvia Angelini wrote:
>>>>> Hi Iago,
>>>>>
>>>>> thank you so much for your quick reply.
>>>>>
>>>>> The range for my FLStock is the following:
>>>>>     min       max plusgroup   minyear   maxyear   minfbar   maxfbar
>>>>>            0         5         5      2007      2013         0         4
>>>>>
>>>>> and this the one for FLindex:
>>>>>
>>>>> Slot "range":
>>>>>          min       max plusgroup   minyear   maxyear    startf      endf
>>>>>         0.00      6.00      6.00   2007.00   2013.00      0.50      0.75
>>>>>
>>>>> Cheers,
>>>>>     Silvia
>>>>>
>>>>>
>>>>> Il 02/10/2014 12:05, Iago Mosqueira ha scritto:
>>>>>> Hi,
>>>>>>
>>>>>> What are the ages ranges and plusgroups in FLStock and FLIndex?
>>>>>>
>>>>>> range(mystock)
>>>>>>
>>>>>> range(myindex)
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>>
>>>>>>
>>>>>> Iago
>>>>>>
>>>>>>
>>>>>> On 02/10/14 11:59, Silvia Angelini wrote:
>>>>>>> Dear all,
>>>>>>>        I have a problem with XSA. I've created my FLStock and FLIndex,
>>>>>>> and
>>>>>>> set up the control. I run the xsa, but I obtain this error:
>>>>>>>
>>>>>>> Error in validityMethod(object) :
>>>>>>>      plusgroup is outside [min, max] range in FLQuant slots
>>>>>>>
>>>>>>> Plus group is different in FLStock and FLIndex, but xsa runs however
>>>>>>> for
>>>>>>> some of my collegues... but not for me!
>>>>>>> Then I tryed also to use same plus group, this time xsa runs but it
>>>>>>> gives NA and -Inf values so results are not good.
>>>>>>> Someone can help me to solve this problem?
>>>>>>> Thank you so much.
>>>>>>> Kind regards
>>>>>>>      Silvia
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> flr-list mailing list
>>>>>>> flr-list at flr-project.org
>>>>>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>>>>>>
>>>>>> _______________________________________________
>>>>>> flr-list mailing list
>>>>>> flr-list at flr-project.org
>>>>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>>>>
>>>>> _______________________________________________
>>>>> flr-list mailing list
>>>>> flr-list at flr-project.org
>>>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>>>
>>>>
>>>> _______________________________________________
>>>> flr-list mailing list
>>>> flr-list at flr-project.org
>>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>>>>
>>> _______________________________________________
>>> flr-list mailing list
>>> flr-list at flr-project.org
>>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
>> _______________________________________________
>> flr-list mailing list
>> flr-list at flr-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list
> _______________________________________________
> flr-list mailing list
> flr-list at flr-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/flr-list



More information about the flr-list mailing list