r - R 中的 plm 模型,“`.rowNamesDF<-`(x, value = value) 中的错误:不允许重复的 'row.names'”
问题描述
这是数据https://drive.google.com/file/d/1dEkCfGUAhbCUr34FXeHjK8YhZ3j0yXTo/view?usp=sharing
这是我的代码:
library(plm)
page1.p <- pdata.frame(page1, index = c("tract", "YearBuilt"))
fm <- plm(log_salesprice ~ firstc0+firstc1+firstc2+firstc3+firstc4+firstc5+firstc0+
firstcneg5p+firstcneg4+firstcneg3+firstcneg2+firstcneg1, data=page1.p,
model = "random")
错误:
`.rowNamesDF<-`(x, value = value) 中的错误:不允许重复的 'row.names'
解决方案
推荐阅读
- scala - Any 对象的类型转换:模式匹配 vs Try()
- java - org.hamcrest.Matcher 类型无法解析。它是从所需的 .class 文件中间接引用的
- http - Arduino MKGSM 中的 HTTP POST 到 Eventhub
- java - 与其他修改内容的方式相比,使用 Sling Pipes 有哪些优势?
- .net - EFCore 2.1 动态 SQL 参数
- gradle - Android studio gradle 同步
- python - 如何在 Selenium 中等待 iframe 页面加载?
- python - 两个不同数据库的微服务通过api rest的关系
- c# - 检测 TCP Server 中两个对象之间的视线和距离
- timestamp - AWS Redshift:[Amazon](500339) TiMESTAMP 的意外错误