Is there something similar to MATLAB's function handles in MATA? It seems like it would be similar to function pointers, except that you can specify default parameters to the function.
For instance, if I have a function, func_a(a, b, c), and I want to pass it in as an argument to another function but with b and c pre-specified so it is passed in as a function with only one argument.
In MATLAB, we could do something like this: simp_func_a = @(a)func_a(a, b0, c0), where b0 and c0 are defined in the calling function. Is there any way to do the same in MATA?
Related Posts with Function Handles
-gsem- for dynamic multinomial logit model with random effectsDear All, I am trying to analyse, using panel data, the extent of state dependance to a previous si…
Calculating citation half-lifeDear all, Assume that you have the following problem. You have patent citations for firms in differ…
Deleting rows with NAsDear Statalists, I would like to delete rows where are only 7 real values and the rest is NA, does a…
mata function available in different ado-filesDear all, I am trying to execute a mata function in different but related ado-files, but I don't kn…
Command to list households with multiple heads/without heads in a survey dataBelow is a extract data from a survey conducted for various households within a community, please wh…
Subscribe to:
Post Comments (Atom)
0 Response to Function Handles
Post a Comment