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
Delete observations within timespan of each otherDear all, I am writing my Master's Thesis and am currently cleaning my data. For each Company I wan…
Three way interaction or multilevelHey everyone! I was just wondering if any of you have any advice to give regarding the advantage of…
Diff in diff with IV for treatment dummyHi all, For my data analysis, I am estimating a difference-in-difference model of the sort Code: …
Test for subpopulation vs total populationHi Statalist, Currently i'am working on my master thesis that contains the topic the 'idiosyncratic…
Calculating the turning pointHi, My name is Jan, and I would like to find the turning point for my regression. I looked at previ…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating differences between adjacent elements
Post a Comment