Skip to content

Support for models with unit specific time trends? #24

Open
@TomBearpark

Description

@TomBearpark

Hi, thanks for a great package!

I am trying to calculate CR3 standard errors for a model that includes unit specific time trends. Do you have any advice on how / if this can be implemented in summclust?

Here's a minimal example, showing the error that I get when I try to use the summclust() function on a model that includes unit specific time trends.

library(summclust)
library(fixest)
df <- fixest::trade

fit  <- feols(Euros ~ dist_km | Year + Origin + Origin[Year], data = df)
summ <- summclust(fit, params = ~dist_km, cluster = ~Origin)

The error is pasted below:

Error in `[[.default`(Origin, Year) : 
  attempt to select more than one element in vectorIndex

Thanks so much for your time and your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions