# How to write a code with mean value or steady value

1. source Recessions and recoveries: Multinational banks in the business cycle[J]. Journal of Monetary Economics, 2021,117:203-219.
formula 25

“f=1-(mean(q)mean(k)/(nuqk))((kappagomegag-kappalomegal)/(kappag*omegag))”

the k means the mean value of capital, i maybe need the external function,but i do not work.

1. CROSS-BORDER BANKING AND MACROPRUDENTIAL POLICIES IN ASYMMETRIC MONETARY UNIONS[J]. MACROECONOMIC DYNAMICS, 2020,24(PII S13651005180002142):255-290.

the D bar means the steady of the D. so i need to compute the steady state first and get the steady number of D.

1. source Recessions and recoveries: Multinational banks in the business cycle[J]. Journal of Monetary Economics, 2021,117:203-219.
formula 25

“f=1-(mean(q)mean(k)/(nuqk))((kappagomegag-kappalomegal)/(kappag*omegag))”

the k means the mean value of capital, i maybe need the external function,but i do not work

I think, you could try `steady_state(q)` to represent the steady value.

``````f=1-(steady_state(q)*steady_state(k)/(nuqk))((kappagomegag-kappalomegal)/(kappag*omegag))
``````