Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in fect when specifying group #9

Closed
danrthomas opened this issue Dec 17, 2020 · 1 comment
Closed

Error in fect when specifying group #9

danrthomas opened this issue Dec 17, 2020 · 1 comment

Comments

@danrthomas
Copy link

Thank you for this great package.

When specifying a group to get group atts in fect, I get the error "object 'pvalue.group.att' not found". I think this is because in boot.R the section
` ## group effect

    if (!is.null(group)) {

        se.group.att <- apply(group.att.boot, 1, function(vec) sd(vec, na.rm=TRUE))

        CI.group.att <- cbind(c(out$group.att) - se.group.att * qnorm(1-alpha/2), 
                            c(out$group.att) + se.group.att * qnorm(1-alpha/2))

        pvalue.placebo <- (1-pnorm(abs(out$group.att/se.group.att)))*2

        est.group.att <- cbind(out$group.att, se.group.att, CI.group.att, pvalue.group.att)

        colnames(est.group.att) <- c("ATT", "S.E.", "CI.lower", "CI.upper", "p.value")
     }
}`

creates pvalue.placebo instead of pvalue.group.att.

@xuyiqing
Copy link
Owner

xuyiqing commented Dec 17, 2020 via email

@lzy318 lzy318 closed this as completed Jan 29, 2023
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

No branches or pull requests

3 participants