running a regression with two datasets


To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

Also, please narrow down the scope of your question and try changing your topic's title accordingly. We like to keep things tidy around here so we like to have one well defined question per topic, but you can make as many questions as you need.