Dear all,
I wonder if there is any easy solution available in Mata for calculating the difference between adjacent elements of a (column) vector? For example, the difference of vector Y should return (Y[2]-Y[1], Y[3]-Y[2], ..., Y[n]-Y[n-1]).
Thank you,
Eilya.
Related Posts with Calculating differences between adjacent elements
Create preference order for source of dataHello everyone, I have occupational data for a large set of countries over time that come from diff…
Pseudo-R^2 and t-statistics after stratification matchingDear all, I am currently trying to apply different propensity score matching estimators to my data.…
How can I overlay Weibull survival curves and Kaplan-Meier curves?Dear Statalist users, I am trying to plot a Weibull survival curve together with a Kaplan Meier cur…
Error 301After I run the following regression: bysort FYEAR SIC: regress TACCATw ATLAGINVw REVATLAGw PPEATLAG…
Using*two*inputs variable*in*measuring*Malmquist*Productivity*IndexHi I am trying to calculate malmquist productivity index with two inputs (Farming Grain) , but when…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating differences between adjacent elements
Post a Comment