我试图使用laeken
包来估算R中基尼系数的方差。这是我的代码:
c1 <- gini("LIFPRTNR", weights="weight3var", design="stratvar", cluster="panelvar", years="time3group", breakdown="RSEX", data=Concentration, var = "bootstrap", bootType = "naive", seed = 1234)
我一直收到错误
Error in rownames<-(*tmp*, value = c("lower", "upper")) :
attempt to set 'rownames' on an object with no dimensions
我是否需要将数据框中的列转换为列表?