안녕하세요 다음 통계학술연구회 카페를 통해 이 사이트를 알게 되어 질문 드립니다.
회귀분석을 통해 매출과 비용의 관계를 도출하고자 하는데요(4년치)
최신 데이터인 2012년 자료에 가중치를 둔 회귀식을 도출해내고자 합니다.
분석 툴로 R을 사용하고 있는데 lm(y~x, weights = c(1,2,3,4))이런식으로 가중치를 두는 것이 옳은 방법인가 의구심이 들어 질문 드립니다.
R콘솔을 보면
Non-NULL
weights
can be used to indicate that different observations have different variances (with the values in weights
being inversely proportional to the variances); or equivalently, when the elements of weights
are positive integers w_i, that each response y_i is the mean of w_i unit-weight observations (including the case that there are w_i observations equal to y_i and the data have been summarized).라고 서술되어 있는데, weight은 이분산(heteroscedasticity)자료에 가중치를 부여하는 명령어인것 같아 저의 의도와는 약간 다른것 같아서요...
도움좀 부탁드립니다.
감사합니다.