楼主: 肖童
28423 11

[学术与投稿] 如何用插值法补齐缺失的数据?在线等 [推广有奖]

11
fyqfyq1024 发表于 2017-10-19 21:03:43
绝版姐妹情 发表于 2013-3-20 19:18
举个例子,假设price中存在缺失值是用" ."表示的空缺值。其他的是一些和price相关的变量* 回归法(如果样本 ...
请问图解在哪里看呀?只这样看看不太懂。谢谢!

12
天堂的味道 发表于 2018-11-18 19:38:30
    Setup
        . webuse ipolxmpl2, clear

    Show years for which the circulation data are missing
        . tabulate circ year if circ == ., missing

    Create icirc containing a linear interpolation of circ on year for missing values of circ and perform this
    calculation separately for each magazine
        . by magazine: ipolate circ year, gen(icirc)
第3个命令为插值法

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2026-1-3 03:17