
plrs.cb(object, alpha=0.05, newcgh=NULL)
plrs-class
.plrs-class that contains CB information.
plrs-class
has to result from function plrs.test
.The problem of finding (at a given x) a confidence interval for the mean response is expressed as a
semi-definite optimization problem and solved using function csdp
of package Rcsdp.
plrs.test
# Simulate data
sim <- plrs.sim(n=80, states=4, sigma=0.5)
# Fit a model
model <- plrs(expr=sim$expr, cghseg=sim$seg, cghcall=sim$cal)
# Confidence bands
model <- plrs.test(model)
model <- plrs.cb(model, alpha=0.05)
plot(model)
Run the code above in your browser using DataLab