Hey I have a dataset in this format:
Date(daily) var1 var2 var3 var4 var5
I only want to work with the value that each variable have the last day in each month
So for january I want the value for day 31, for february the value for day 28(unless leap year of course), and so on.
Also, if the last date in this month is a holiday and I have no value, can I make it use the last valid value for this month? Missing values are noted as NA instead of a number.
Related Posts with Using only end of month values for a daily dataset?
Replace with first group valuesI want to know how to replace the missing values for other groups (by mdate) with the values of grou…
Combining panel datasets with the same IDs and years to create advanced graphsDear members, I have a panel dataset and I would like to append another dataset to it which has the…
Questionshello everyone, I am new to Stata and have a question with regard to variable creation. I am trying…
Psmatch2Hi, Everytime I run psmatch2 command, it generates a different model which then impact the further a…
Issue importing timeHi, I've started using Stata17 and never experienced the following problem with past version: I am …
Subscribe to:
Post Comments (Atom)
0 Response to Using only end of month values for a daily dataset?
Post a Comment