[R] Error: cannot change value of locked binding for
Martin Becker
martin.becker at mx.uni-saarland.de
Fri Apr 20 18:50:11 CEST 2007
Did you have a look at the posting guide?
We have to guess that you are using some version of fOptions in some
version of R under some OS, and that you run code from the examples
section of ?MonteCarloOption relying on other code from that section
which is not mentioned at all. Given that these guesses are correct:
The first parameter of MonteCarloOption should read "delta.t", not "dt"
(at least in fOptions version 241.68). If you are using "dt" because you
have an old version of fOptions and "dt" is correct for that version,
try updating fOptions, otherwise maybe changing "dt" to "delta.t" helps.
Regards,
Martin
gyadav at ccilindia.co.in wrote:
> Hello R experts
>
> What does this error means and how to resolve this issue (cannot change
> value of locked binding for ). Please suggest
>
>
>> mc = MonteCarloOption(dt = 1/360, pathLength = 30, mcSteps = 5000,
>>
> mcLoops =
> + 50, init = TRUE, innovations.gen = sobolInnovations, path.gen =
> wienerPath,
> + payoff.calc = arithmeticAsianPayoff, antithetic = TRUE, standardization
> =
> + FALSE, trace = TRUE, scrambling = 2, seed = 4711)
> Error in MonteCarloOption(dt = 1/360, pathLength = 30, mcSteps = 5000, :
> cannot change value of locked binding for 'dt'
>
>
>
> Thanks in advance
>
> Sayonara With Smile & With Warm Regards :-)
>
> G a u r a v Y a d a v
> Assistant Manager,
> Economic Research & Surveillance Department,
> Clearing Corporation Of India Limited.
>
> Address: 5th, 6th, 7th Floor, Trade Wing 'C', Kamala City, S.B. Marg,
> Mumbai - 400 013
> Telephone(Office): - +91 022 6663 9398 , Mobile(Personal) (0)9821286118
> Email(Office) :- gyadav at ccilindia.co.in , Email(Personal) :-
> emailtogauravyadav at gmail.com
>
>
> ============================================================================================
> DISCLAIMER AND CONFIDENTIALITY CAUTION:\ \ This message and ...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list