python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How can I speed up a rolling regression with multiple conditions in r?
I have a pretty big dataset (around 12 million rows) on which I need to run a rolling regression for every row which includes the entries of the past 30 rows. It's a simple linear regression but the r...
ABCE
Votes: 0
Answers: 1
How to correctly select dependent variable and controls in lm() in R?
I am looking for a way to construct a function that will allow the user, given a data frame, to:
Choose what variable will be the dependent variable;
Choose a certain control (one only variable);
Bas...

Raul Guarini Riva
Votes: 0
Answers: 2
Use of variable arguments (dot-dot-dot) in stats::lm in R
Suppose we have a function that makes a call to stats::lm and takes a formula and a data frame as arguments. Further arguments that we want to pass to stats::lm can be provided using variable argument...
user2986671
Votes: 0
Answers: 1
Replace part of the output of lm() function in Base R
Object res1 is a regression function from the metafor package. Object res2 is a regression function from the stats R base.
I was wondering if it might be possible to get the vcov() of res1 and substit...
Simon Harmel
Votes: 0
Answers: 2