Instrumental variables

Everything related to the development of modules in jamovi
Post Reply
rovargasc
Posts: 10
Joined: Tue Oct 26, 2021 9:22 pm

Instrumental variables

Post 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.
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Instrumental variables

Post 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
rovargasc
Posts: 10
Joined: Tue Oct 26, 2021 9:22 pm

Re: Instrumental variables

Post by rovargasc »

Oh, yes. Thanks!
User avatar
mcfanda@gmail.com
Posts: 457
Joined: Thu Mar 23, 2017 9:24 pm

Re: Instrumental variables

Post by mcfanda@gmail.com »

@MAgojam
you're the man

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