Questions tagged [lfe]

LFE stands for Lisp Flavoured Erlang, a lisp syntax front-end to the Erlang compiler.

LFE, Lisp Flavoured Erlang, is a full implementation of a Lisp running on the Erlang/OTP system. Code produced with it is compatible with "normal" Erlang code.

28 questions
1
vote
1 answer

Why does my fe with demeaned data ( lm() ) not reproduce coefficients from plm(), lfe() and lsdv?

I am trying to reproduce fixed effects coefficients for panel data using different packages and techniques: (1) plm(), (2) lfe(), (3) dummy-lsdv with lm(), and (4) demeaned-fe with lm(). My data set consists of 1581 observations and 13 variables. It…
Ane Yla
  • 93
  • 1
  • 4
1
vote
2 answers

feols - fixest: loop over dependent variable

I am trying to loop over a set of dependent variables using the feols function from the fixest package. In base using lm or in lfe::felm I would simply use the get() function. With fixest, I receive an error. Why is that, and is there a way to get…
A.Fischer
  • 596
  • 5
  • 11
1
vote
0 answers

Marginal effects / interaction plots for lfe felm regression object

I need to create an interaction / marginal effects plot for a fixed effects model including clustered standard errors generated using the lfe "felm" command. I have already created a function that achieves this. However, before I start using it, I…
Phil
  • 954
  • 1
  • 8
  • 22
1
vote
1 answer

rebar3 fails to fetch and copy dependencies (LFE project)

After some years I'd like to back working with Erlang/LFE. I've a little project I made to learn the language. I'm unable to fetch dependencies using rebar3 get-deps command. It follows rebar.config, also available here. {erl_opts, [debug_info,…
gsscoder
  • 3,088
  • 4
  • 33
  • 49
1
vote
1 answer

Not able to apply guard expression in query list comprehension

I am trying a query list comprehension: > (set xs '(1 2 3 4 5 6 7 8)) > (lc ((<- x xs) (when (> x 5))) x) But I am getting the error exception error: undefined function when/1. Is it possible to apply guard statements to lc?
John Doe
  • 2,225
  • 6
  • 16
  • 44
1
vote
2 answers

How to export the regression table for the results with robust standard error or clustered standard error with package lfe?

Using the package lfe, I can generate the regression results with either robust standard error or clustered standard error using command felm. For the standard regression, I can export the regression table with the texreg package using function…
johnsonzhj
  • 517
  • 1
  • 5
  • 23
1
vote
0 answers

Fixed Effects Regression Constant / Intercept Using FELM in R

How does one obtain the intercept ('constant') when using the felm function (of the lfe package) for panel data with fixed effects? Reproducible example: library(lfe) set.seed(42) x <- rnorm(100000) f1 <- sample(10000, length(x), replace=TRUE) f2 <-…
Sholom
  • 141
  • 1
  • 7
1
vote
2 answers

How do I display long results in LFE REPL?

Following image shows that LFE truncates displayed results. Compared to SBCL REPL I can see less than half of result data. How do I show all results in LFE?
ruby_object
  • 1,229
  • 1
  • 12
  • 30
0
votes
3 answers

Coercing felm R-object into lm form or some other way of getting it printed in a LaTeX table

I am using the lfe package in R to do some regression with lots of fixed effects, so direct lm is out of the question (and since the fixed effects are not individual-level, so is plm). I get the output with no problems but now I'd like to use it in…
0
votes
0 answers

Interaction terms using colon does not work for error clustering in felm

I would like to cluster errors in my fixed effect regression at the origin-by-year level. When I use : (i.e., year:origin) as clusters in the felm formula, it seems like felm actually clusters error in a two-way manner (i.e., year + origin). When I…
0
votes
1 answer

Plot interaction in paneldata

I have run this regression without any problems and I get 4 coefficients, for each interaction between econ_sit and educ_cat. Econ_sit is a continous variable, and educ_cat is a categorical variable from 1-6. How can i plot the coefficients only for…
RH1994
  • 37
  • 3
0
votes
1 answer

Using broom::tidy on felm result with clustered standard errors

I'm trying to extract point estimates and confidence intervals from a panel data model. The following reproduces the error using the canned example from the lfe documentation. The only small change I've made is to cluster standard errors at the…
jfeigenbaum
  • 403
  • 4
  • 13
0
votes
1 answer

Arity of + and - operators in Lisp Flavored Erlang

As I am just starting with LFE I've been trying out some examples from the book (SICP, LFE version) while reading the chapters. In exercise 1.4 page 76 I see the expressions #'+/2 and #'-/2. So I enter into the REPL (funcall #'+/2 1 2) and get (as…
Jordan
  • 55
  • 1
  • 4
1
2