Skip to main content
0 votes
1 answer
130 views

Data: rentsqm area location 40 4.830769 110 2 41 10.375799 64 3 42 4.168205 75 3 43 6.992405 54 2 44 7.450549 70 1 45 6.645718 71 1 46 10....
Dave Twickenham's user avatar
1 vote
1 answer
54 views

Problem I have a working PM code, but as soon as I add LM setup, the GDT base gets assigned a garbage address, cr registers don't load properly and I get into a boot loop. I tried hard-coding the ...
Adi Mehmedičević's user avatar
2 votes
1 answer
109 views

I created two models using the lm() function in R. The first model, I created the design matrix for my prediction variable and then fed that into the lm() function. copy <- data.frame(mtcars) ...
Arthur's user avatar
  • 21
0 votes
0 answers
54 views

I am running an event study design and get some unexpected behavior using OLS. One of my outcome variables is by definition zero before the treatment, i.e., whenever event time is weakly smaller than ...
Simon's user avatar
  • 35
0 votes
0 answers
27 views

I am trying to fit a multiple regression model to my data. I am testing the hypothesis that outcome Y is linearly related to independent variable X, while controlling for a linear relationship with ...
user29991160's user avatar
1 vote
1 answer
62 views

This is my first consult, happy to share the community :) (You would notice I'm not a native english speaker and also I'm not very good using R, actually these are my firsts steps). I'm trying to ...
Josep Ramos's user avatar
0 votes
2 answers
98 views

I am running an lm() in R, and I create the dataframe using a for{} loop. For most of the coefficients they are different, however two of them ConditionC_20 and ConditionC_22 are identical. Below is ...
Harry S.'s user avatar
0 votes
1 answer
52 views

Is there a way in the stepwise procedure to control that a set of variables get added or removed as a group? Particularly, if I form a squared value of variable, that the linear and squared term would ...
JohnS's user avatar
  • 21
0 votes
0 answers
44 views

I am trying to use paste0 so that I can run a series of linear models (with a quadratic term), one for each independent variable. Unfortunately, when I use the more complicated form (shown in last ...
JohnS's user avatar
  • 21
0 votes
2 answers
101 views

This question comes up regularly, especially in the context of finance where one wants to calculate rolling exposures to factors, but there seems to be no answer. There are a number of R packages, ...
ivo Welch's user avatar
  • 3,098
0 votes
1 answer
49 views

I think I've encountered a bug when plotting diagnostic plots for models made with lm() including a poly() term using ggResidPanel::resid_panel(). df <- data.frame(x=rnorm(100), y=...
Gmichael's user avatar
  • 578
0 votes
1 answer
59 views

I have a code that works if I am using LM but not if I am using a GAM. I guess the that for whatever reason LM looks inside object for the variable and GAM just looks at the names of the object but I ...
adrianmnc's user avatar
0 votes
0 answers
27 views

I downloaded homebrew, gcc14 and pasted the path on compiler. Then it worked when I pasted the flags: -DCMAKE_C_FLAGS="-Wall -Werror -pedantic-errors -lm -g" But it didn’t build and showed: ...
user28256843's user avatar
1 vote
2 answers
131 views

I am performing a linear regression with one continuous predictor and one categorical (two levels) predictor. I have included the categorical factor as a named factor ("Control" and "BD&...
okaywell's user avatar
1 vote
1 answer
108 views

I want to run an IV regression in R using ivreg from the AER package. The output gives me a negative R^2 which should be impossible as far as I know. When running the same regression manually with ...
user27435905's user avatar

15 30 50 per page
1
2 3 4 5
129