How to write a function

I have a model below that I am trying to write a function in R for.

I Interpret that you are asking to be pointed to the ifelse function that supports vectorised conditional assignment.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.