| predict.systemfit.equation {systemfit} | R Documentation |
Returns the predicted values.
## S3 method for class 'systemfit.equation': predict( object, data, ... )
object |
an object of type systemfit.equation. |
data |
data frame in which to predict. |
... |
additional optional arguments. |
predict.systemfit.equation returns a vector
of the predicted values.
Arne Henningsen ahenningsen@agric-econ.uni-kiel.de
systemfit, predict.systemfit
and predict
## Not run: library( systemfit )
data( kmenta )
demand <- q ~ p + d
supply <- q ~ p + f + a
labels <- list( "demand", "supply" )
system <- list( demand, supply )
## OLS estimation
fitols <- systemfit("OLS", system, labels, data=kmenta )
## print the predicted values of the first equation
predict( fitols$eq[[1]] )
## print the predicted values of the second equation
predict( fitols$eq[[2]] )