Skip to content
#

margin

Here are 40 public repositories matching this topic...

anniejw6
anniejw6 commented Aug 11, 2017

Random, scattered notes below

# Clustered Standard Errors

https://github.com/anniejw6/modmarg/blob/master/data-raw/make_cluster_vcov.R#L6-L31

# Robust Standard Errors

robust_se <- function(model){
  if(model$family$family %in% c('binomial', 'quasibinomial')){
    sandwich::sandwich(model) * nobs(model) / (nobs(model) - 1)
  } else {
    if(model$family$family != 'gaussian')
 

Improve this page

Add a description, image, and links to the margin topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the margin topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.