R> library( "systemfit" )
R> data( "Kmenta" )
R> attach( Kmenta )
R> eqDemand <- consump ~ price + income
R> eqSupply <- consump ~ price + farmPrice + trend
R> eqSystem <- list( demand = eqDemand, supply = eqSupply )
R> fitols <- systemfit( eqSystem )
R> print( fitols )
本人刚学R语言不久 第一次接触求解方程
谁能教我一下
R> eqDemand <- consump ~ price + income
R> eqSupply <- consump ~ price + farmPrice + trend
R> eqSystem <- list( demand = eqDemand, supply = eqSupply )
这三句都代表什么意思呢?
我目前的理解是 demand和price income两个变量有关 但前面的consump是什么呢?还有~是什么意思?
eqsystem应该是指将上面两个方程联立形成联立方程模型对吧?