Page 1 of 1

Instrumental variables

Posted: Wed May 25, 2022 5:09 pm
by rovargasc
Hi! I would like to try to build a module about instrumental variables, but first I must learn well how to create a multiple linear regression to implement it in Jamovi. Could you give me some help about how to create it?

formula <- paste(self$options$dep, '~', self$options$covs)
formula <- as.formula(formula)
results <- lm(formula, data = self$data)
self$results$text$setContent(results)


With these lines of code I was able to build a simple linear regression, but I don't know how to do it for a multiple one. Thank you very much in advance.

Re: Instrumental variables

Posted: Wed May 25, 2022 10:30 pm
by MAgojam
rovargasc wrote:Hi! I would like to try to build a module about instrumental variables
Hi @rovargasc,
Marcello Gallucci recently released ENDOj, a module in jamovi's library, for the analysis of Instrumental Variables based on 2SLS.
I think you might be interested in taking a look at the sources here:
https://github.com/ENDOjamovi/ENDOj

Cheers,
Maurizio

Re: Instrumental variables

Posted: Thu May 26, 2022 8:28 pm
by rovargasc
Oh, yes. Thanks!

Re: Instrumental variables

Posted: Thu May 26, 2022 8:46 pm
by mcfanda@gmail.com
@MAgojam
you're the man

here is the help page
https://endojamovi.github.io/