I have two dataframes representing two different time points. I want to run a linear regression model with data from both time points

28 views Asked by At

I have two data frames representing two different timepoints, and I am wanting to run a linear regression model with data from two different timepoints.

timepoint_1 can be the first data frame, and timepoint_2 can be the second. I want to use the freq (frequency) data from the first timepoint, and I want to use the notes data from the first timepoint, but I want the instrument data from the second timepoint.

lm(freq~ notes+instrument+tuning, data =timepoint_1)

This is a silly example, but I am paranoid to post actual pictures of my actual data on here since we are trying to publish.

Ive tried to do something like this below, but it does not work

lm(freq~ notes+timepoint_1$instrument+tuning, data =timepoint_1)
0

There are 0 answers