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

Implement [<- and [[<- operators for fitted distributions #230

Open
joethorley opened this issue Sep 8, 2021 · 2 comments
Open

Implement [<- and [[<- operators for fitted distributions #230

joethorley opened this issue Sep 8, 2021 · 2 comments

Comments

@joethorley
Copy link
Collaborator

Example code

x<-fit.list[[1]]
dist.list <- x
d<-dist.list[[1]]
pvals.vec <- c(1,5,10,20)
ssd_hc(d, percent=pvals.vec)
I get:
Error in UseMethod("ssd_hc") :
  no applicable method for 'ssd_hc' applied to an object of class "tmbfit"
(fit list as a list of ssdtools@tbmtools fitted models to all the simulated datasets)
@joethorley
Copy link
Collaborator Author

[<- should return fitdist object [[<- should return tmbfit object and I'm thinking $ should be same as [<- unless name of parameter values?

@joethorley
Copy link
Collaborator Author

Actually I think $ should be [[<-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant