Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何消除不符合';t匹配R中的时间序列_R_Time Series_Panel Data_Random Effects - Fatal编程技术网

如何消除不符合';t匹配R中的时间序列

如何消除不符合';t匹配R中的时间序列,r,time-series,panel-data,random-effects,R,Time Series,Panel Data,Random Effects,对于R中的随机效应模型,我有以下数据框,日期的格式为年-月-日: Country Date Value 1: "A" 2019-1-2 6 2: "A" 2019-1-3 4 3: "A" 2019-1-4 5 4: "A" 2019-1-5 4 5: "A" 2019-1-6

对于R中的随机效应模型,我有以下数据框,日期的格式为年-月-日:

   Country   Date       Value
1:     "A"   2019-1-2      6
2:     "A"   2019-1-3      4
3:     "A"   2019-1-4      5
4:     "A"   2019-1-5      4
5:     "A"   2019-1-6      4
6:     "A"   2019-1-7      5
7:     "a"   2019-1-8      6
8:     "B"   2019-1-3      4
9:     "B"   2019-1-4      5
10:    "B"   2019-1-5      4
11:    "B"   2019-1-6      4
12:    "B"   2019-1-7      5
13:    "C"   2019-1-2      6
14:    "C"   2019-1-3      4
15:    "C"   2019-1-4      5
16:    "C"   2019-1-5      4
17:    "C"   2019-1-7      5
为了使该模型起作用,我需要所有国家都有相同的时间序列,并且它是连续的。在这种情况下,我希望所有国家都拥有与B相同的数据序列,因此我需要修剪A,删除C。(对于给定时间间隔内不连续的时间序列,解决方案是丢弃所有数据)

我完全迷路了,有人知道如何快速解决这个问题吗