I have a Cobb-Douglas equation I am modelling in R
:
$$ \ln(Y) = β + β_a \ln(A) + β_l \ln(L) + β_f \ln(F) + β_o \ln(O) + u $$
Is there an easy way of testing the hypothesis about whether the betas sum to one; less than one; more than one?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this community
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$