Skip to content

Conversation

@lukesonnet
Copy link
Contributor

@lukesonnet lukesonnet commented Oct 23, 2018

  • Version bump for first post-0.12 release bump
  • Adds CR3 standard error estimators to both lm_robust and iv_robust (closes issue Add CR3 clustered se option #261)
  • Updates documentation and tests (lots of test refactoring)
  • For now gives S-1 as the degrees of freedom, as the next PR will just divide the DoF from the SE

nfultz
nfultz previously approved these changes Oct 24, 2018
Copy link
Contributor

@nfultz nfultz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

if (!is.null(obj[["call"]])) {
obj[["call"]] <- NULL
}
return(obj)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rmcall <- function(obj) { structure(obj, call=NULL) }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work as call is an object in a list not an attribute.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah - right, different from DeclareDesign. You can still remove the null check I think.

} else {

if (se_type == "CR2") {
if (se_type == "CR2" || se_type == "CR3") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose if you want

((se_type == "CR2") || (se_type == "CR3"))

(se_type == "CR2" || se_type == "CR3")

(se_type %in% c("CR2", "CR3"))

and be consistent throughout.

@macartan
Copy link

macartan commented Oct 24, 2018 via email

@lukesonnet
Copy link
Contributor Author

@macartan, the tests compare it with clubSandwich. Stata does not have CR3 standard errors, but I think base sandwich in R does now and I could add those tests.

@lukesonnet
Copy link
Contributor Author

I'm stuck right now because the slight (numerical) differences in the variance-covariance matrix from commarobust or from lm_robust are causing different kinds of failures in computing the F-statistic on windows 32bit machines.

This is an absolutely ridiculous error, but I'm trying to eliminate or minimize the numerical deviations that are causing it.

@acoppock
Copy link
Collaborator

OK with me if we just round to the 10th decimal place or something to get around this windows issue

@acoppock
Copy link
Collaborator

Thanks so much for adding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants