Hi,
I'm trying to implement a function in Mata that takes an input n and returns a function that takes in inputs x and returns x^n.
Since nested functions are not allowed in Mata, I'm struggling to see how to do this. Is there any workaround to this?
I am using Stata 18.5
I'm trying to implement a function in Mata that takes an input n and returns a function that takes in inputs x and returns x^n.
Since nested functions are not allowed in Mata, I'm struggling to see how to do this. Is there any workaround to this?
I am using Stata 18.5
Comment