Community Profile

photo

Mia Dier


Last seen: 약 2달 전
10 2021 이후 총 참여 횟수

Mia Dier's 배지

  • Thankful Level 2

세부 정보 보기...

참여 게시물
보기 기준

질문


Rowfun without changing the order
I want to use rowfun but I don't want the resulting outcome to be sorted according to the grouping variables that I specify. I w...

3달 전 | 답변 수: 0 | 0

0

답변

질문


Conditional average (need help with speed)
I have a table that looks like this: country_id year M T average_T 1 2000 10 76 Na...

3달 전 | 답변 수: 1 | 0

1

답변

질문


How to count the number of times that the previous observation was repeated
I have a table that looks like this: country_id year M 1 2000 10 1 2001 ...

3달 전 | 답변 수: 0 | 0

0

답변

질문


How to add a NaN row at the beginning columns of a table?
I have a code that looks like this: A(:,1)=[NaN;B(1:end-1)]; A(T.id(1:end)~=[NaN;T.id(1:end-1)],1)=NaN; A(:,2)=[NaN;NaN;...

3달 전 | 답변 수: 1 | 0

1

답변

질문


Changing value when first time a value appears
A=[1; 1; 1; 1; 2; 2; 4; 4; 4; 4] B=[4; 2; 7; 9; 5; 0; 2; 6; 1; 0] I want to change the values of B to NaN whenever a value i...

3달 전 | 답변 수: 1 | 0

1

답변

질문


How to calculate the number of times the values of a column changes
I want to calculate the number of times of column A changes over the last 5 years for each id number not counting the current ye...

3달 전 | 답변 수: 1 | 0

1

답변

질문


Variance when only one observation is not NaN
I am trying to calculate a moving variance of the max last 5 years of observations. I have a tabke that looks like this: id ...

3달 전 | 답변 수: 1 | 0

1

답변

질문


EDITED: Variance when only one observation is not NaN
EDITED: I think my problem was not clear from the previous example. So, I added a new one below here: I am trying to calcula...

3달 전 | 답변 수: 2 | 0

2

답변

질문


How to count the number of times that values changes?
A=[1 1 1 2 1 3 3 1 1]' I want to get: B=[NaN 0 0 1 2 3 3 4 4]' The second and third values of B are 0 because A doesn't cha...

3달 전 | 답변 수: 2 | 1

2

답변

질문


How to count the number of times that the previous observation was repeated
I have a table that looks like this: country_id year M 1 2000 10 1 2001 ...

3달 전 | 답변 수: 1 | 0

1

답변