| update.randportBurSt {PortfolioProbe} | R Documentation |
Re-executes a call to random.portfolio or trade.optimizer,
possibly with some arguments changed.
update.portfolBurSt(object, ..., evaluate = TRUE, checkinput = TRUE, envir = parent.frame(), random.portfolio = FALSE) update.randportBurSt(object, ..., evaluate = TRUE, checkinput = TRUE, envir = parent.frame(), trade.optimizer = FALSE)
object |
object produced by |
... |
arguments to |
evaluate |
logical value.
If This argument needs to be given by its full name since it comes after the three-dots in the argument list. |
checkinput |
logical value.
If This argument needs to be given by its full name since it comes after the three-dots in the argument list. |
envir |
the environment in which the evaluation is to take place. This argument needs to be given by its full name since it comes after the three-dots in the argument list. |
random.portfolio |
logical value.
If If the This argument needs to be given by its full name since it comes after the three-dots in the argument list. |
trade.optimizer |
logical value.
If If the This argument needs to be given by its full name since it comes after the three-dots in the argument list. |
If evaluate is TRUE, then the possibly revised
call is executed, producing a random portfolio object (of class
"randportBurSt") – or an optimized portfolio object.
Arguments that are changed need to use the exact same abbreviation (if any)
as the original call.
For instance, if in the original call net.value is abbreviated to
net.val, then you need to use net.val if you want to change
the net value allowed.
This help was last revised 2013 April 11.
random.portfolio, trade.optimizer,
pprobe.checkinput.
randport1 <- random.portfolio(100, prices, variance=varian, long.only=TRUE, bench.constr=c(spx=.04^2/252), lin.constraints=cntrysect.conmat, lin.bounds=cntrysect.bounds, gross.value=1e6) randport2 <- update(randport1) # same again randport3 <- update(randport1, gross.value=1.5e6) opt1 <- trade.optimizer(prices, variance=varian, long.only=TRUE, bench.constr=c(spx=.04^2/252), lin.constraints=cntrysect.conmat, lin.bounds=cntrysect.bounds, gross.value=1e6) opt2 <- update(opt1, gross.value=1.5e6) randport4 <- update(opt1, number.rand=100, random.portfolio=TRUE)