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.
Instrumental variables
Re: Instrumental variables
Hi @rovargasc,rovargasc wrote:Hi! I would like to try to build a module about instrumental variables
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
Oh, yes. Thanks!
- mcfanda@gmail.com
- Posts: 462
- Joined: Thu Mar 23, 2017 9:24 pm