Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ypr function #21

Closed
Isabella84 opened this issue Nov 6, 2017 · 3 comments
Closed

ypr function #21

Isabella84 opened this issue Nov 6, 2017 · 3 comments

Comments

@Isabella84
Copy link

Dear developer,
I have problem in run the command ypr. I am using the following code:

devtools::install_github("tokami/TropFishR")
require(TropFishR)
Winf=(0.000006*30)^3.085
m=mean(as.vector(c(0.755, 0.567, 0.483)))
param=list(Linf=30,Winf=Winf,K=0.24,t0=-0.61,M=m,tr=0.25,tc=0.5)

#param a list consisting of following parameters (not all are required):
#• Linf: infinite length in cm,
#• Winf: infinite weight,
#• K: growth coefficent for investigated species per year [1/year],
#• t0: theoretical time zero, at which individuals of this species hatch,
#• M: natural mortality,
#• tr: age of recruitment,
#• tc: age of first capture;
#FM_change vector with ascending fishing mortalities,
#t default NA

ypr(param, FM_change=seq(0,2,0.1))

Thank you in advance for your help,
Isabella

@lidach
Copy link

lidach commented Nov 9, 2017

Sorry I'm not the developer, but you can use this code instead for ypr:
output <- predict_mod(param, type = "ypr",
FM_change = seq(0,3,0.1),
hide.progressbar = TRUE, plot = TRUE)

@Isabella84
Copy link
Author

Isabella84 commented Nov 13, 2017 via email

@tokami
Copy link
Owner

tokami commented Nov 15, 2017

Thank you @lidach for helping out! Let us know if there is any other problem, @Isabella84 , otherwise I close this issue.

@tokami tokami closed this as completed Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants