Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
$\begingroup$The car package has the linearHypothesis function that enables you to test the claim that all betas sum to 1 easily. If mod is your model, then use the following command: linearHypothesis(mod, "1 = beta_a + beta_l + beta_f + beta_o") where beta are the names of your variables $\ln(A)$ etc. as entered in the regression command. Have a look at the help page of linearHypothesis for more examples.$\endgroup$
linearHypothesis
function that enables you to test the claim that all betas sum to 1 easily. Ifmod
is your model, then use the following command:linearHypothesis(mod, "1 = beta_a + beta_l + beta_f + beta_o")
wherebeta
are the names of your variables $\ln(A)$ etc. as entered in the regression command. Have a look at the help page oflinearHypothesis
for more examples. $\endgroup$