I want to do a simple lm of y~x where I weight my response variable. This is because the values of y are actually each in turn the value of a slope of another regression of y~year i.e. rates of change over time, and for each of these original regressions the number of recorded years was variable (some had data for 20 years, some for 40, some for 45 etc).
I realise weighting an lm has been discussed here:
How to use weights in function lm in R?
However I am unsure as to whether using the simple instructions outlined in this post I will be weighting y (which is what I want) or x, or whether the weight "acts" across the whole lm and the distinction I am drawing between weighting y specifically, rather than x, is invalid...