Unused Argument, not recognising rho

Hi, I'm trying to carry out a likelihood ratio on my dataset but the code I've been given by my uni isn't working. This is what I've tried so far....
This was a code that worked for the previous step:

assign.probs<-Vectorize(assign.probs,vectorize.args=c("IgG","TgERP","a"))

This is the code that is giving me an error message:

assign.probs(control[1,"IgG"],control[1,"TgERP"],control[1,"age"],lambda,pi,rho)
Error in qa(a, lambda, pi, rho) : unused argument (rho)

and this one to calculate sum....

sum(log(assign.probs(control[,"IgG"],control[,"TgERP"],control[,"age"],lambda,pi,rho)),na.rm=T)
Error in qa(a, lambda, pi, rho) : unused argument (rho)

Any guidance would be greatly appreciated! Thanks :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.