covariate.predictions MSLD model stratum/movement

Hi,
Wondering if someone can point me in the right direction for working with mlogit and covariate.predictions
I am looking to plot stratum A and stratum B covariate predictions for estimated movement and fork length at time of tagging (individual covariates)
I have been successful estimating and plotting these for survival but am having trouble interpreting what exact changes I need to make when working with mlogit movement estimates...
my code for estimating survival fork length covariate predictions
Under covariate.predictions reads:
"However, if you are making the computations for parameters that use an mlogit link you must use the separate indices argument. If you try to use the data.frame(index=...,cov) approach with mlogit parameters and you have covariate values, the function will stop with an error."
I'm just not exactly sure what this is telling me to do as there is no argument for separate indices. Some further explanation to help me work through this code would be so appreciated.
Thanks in advance
Wondering if someone can point me in the right direction for working with mlogit and covariate.predictions
I am looking to plot stratum A and stratum B covariate predictions for estimated movement and fork length at time of tagging (individual covariates)
I have been successful estimating and plotting these for survival but am having trouble interpreting what exact changes I need to make when working with mlogit movement estimates...
my code for estimating survival fork length covariate predictions
- Code: Select all
#stratum A
S.length.predictions.FL=covariate.predictions(top.models,data=data.frame(index=rep(1),FL=rep(344:735,1)))
#stratum B
S.length.predictions.FLB=covariate.predictions(top.models,data=data.frame(index=rep(5779),FL=rep(344:735,1)))
#where fork length ranges form 344 - 735 and index=rep is and index from each of the survival stratum (A/B)
Under covariate.predictions reads:
"However, if you are making the computations for parameters that use an mlogit link you must use the separate indices argument. If you try to use the data.frame(index=...,cov) approach with mlogit parameters and you have covariate values, the function will stop with an error."
I'm just not exactly sure what this is telling me to do as there is no argument for separate indices. Some further explanation to help me work through this code would be so appreciated.
Thanks in advance