-
Notifications
You must be signed in to change notification settings - Fork 4
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 terms.formula(tmp, simplify = TRUE) : invalid model formula #26
Comments
Hi, thanks - Until then, a workaround for you is to run
|
Btw as you are new to R and use WLS - one difference between R and Stata is that R does not differentiate between frequency and sampling/probability weights. In R's |
Very interesting, thanks. I will add this to my problem set so the students know. |
…xest cluster arguments to be a formula, column vector or character; aligned updates to pre-processing for lm and felm. Note: if column vector are fed in, they need to be specified in relation to the input data.frame, e.g. as data$weights.
With commit 874facb, |
Fantastic, thanks. Can confirm it worked for me.
…On Wed, Dec 29, 2021 at 12:33 PM Alexander Fischer ***@***.***> wrote:
With commit 874facb
<874facb>,
boottest() should no longer fail when the weights argument in feols() is
specified as a formula, or when the cluster argument in feols is specified
as a column vector (with the caveat that the column vector needs to be
specified in relation to the input data, e.g. feols(fml, data, cluster =
data$cluster, weights = data$weights), I will add this option in the next
days).
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKYJV45JZ4XFIDSZG3OGBWLUTNA5LANCNFSM5K2NPB6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
…e specified as vectors but without reference to the input data set, hence not as data$weights. While this is legal for feols(), lm() and felm(), I want to make sure that the weights vector is part of the input data.frame - which is neccessary for reasons of data processing
I'm receiving the above error when trying to run boottest using a feols model. I don't have same issue with lm. I'm probably doing something wrong, but just in case this is a bug, I wanted to let you know.
The text was updated successfully, but these errors were encountered: