OneSampleMR icon indicating copy to clipboard operation
OneSampleMR copied to clipboard

issue with ivreg including fixed effect

Open cherrypiecoco opened this issue 3 years ago • 1 comments

Hi, I have an issue using this package. When I run ivreg with fixed effects (as.factor(Yr), for instance), and pass on the estimated model to fsw(), I encounter an error message.

"Error in parse(text = x, keep.source = FALSE) : :1:353: unexpected numeric constant"

I hope this issue gets resolved. Thank you.

cherrypiecoco avatar Aug 22 '22 11:08 cherrypiecoco

Thanks for your interest.

Which of the variables is your Yr variable; is it exposure/phenotype/endogenous variable or instrumental variable (i.e. I'm assuming it's not the outcome).

If possible could you include code for a fully reproducible example, e.g. using a public dataset otherwise I will try to make one.

remlapmot avatar Aug 22 '22 12:08 remlapmot