McplModel

Share:

Description

Constructs an McplModel.

Usage

1
McplModel(learningModel,responseModel)

Arguments

learningModel

an object of class LearningModel

responseModel

an object of class ResponseModel

Value

An object of class McplModel.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## open weather prediction data
data(WPT)
## first specify a learning model, then a response model, and then combine
##   them into an McplModel.
lMod <- RescorlaWagner(y~x1+x2+x3+x4,data=WPT,ntimes=rep(200,25),remove.intercept=TRUE)
rMod <- RatioRuleResponse(r~predict(lMod)-1,data=WPT,ntimes=rep(200,25))
mMod <- McplModel(lMod,rMod)
## estimate free parameters
## Not run: mMod <- fit(mMod)
summary(mMod)