当前位置: X-MOL 学术Stata J. Promot. Commun. Stat. Stata › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Stata tip 145: Numbering weeks within months
The Stata Journal: Promoting communications on statistics and Stata ( IF 4.8 ) Pub Date : 2022-04-05 , DOI: 10.1177/1536867x221083928
Nicholas J. Cox 1
Affiliation  

A user wanted a variable to indicate in which week of its month a daily date fell. That question is a challenge both to imagine different definitions of weeks within months and to produce Stata code for each interpretation. It serves as a reminder that whatever date and time problems have been solved, there are still plenty more. See, for example, Cox (2010, 2012a,b, 2018b, 2019) for some previous notes in this territory.

中文翻译:

Stata 提示 145:数月内的周数

用户想要一个变量来指示每日日期在其月份的哪一周下降。这个问题是一个挑战,既要想象几个月内对周的不同定义,又要为每种解释生成 Stata 代码。它提醒人们,无论日期和时间问题已解决,还有更多问题。例如,参见 Cox (2010, 2012a,b, 2018b, 2019),了解该领域之前的一些注释。
更新日期:2022-04-05
down
wechat
bug