Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-14 Thread Alexandr M
nk you! It's exactly what I needed. --- BR, Alexandr On 11 November 2014 23:33, Marco Scutari wrote: > Hi Alexandr, > > On 11 November 2014 00:10, Alexandr M wrote: > > Sorry that I formulated my question not very accurately. > > I form expressions/(logic condit

Re: [R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-10 Thread Alexandr M
= eval(parse(text=str1)), evidence = eval(parse(text=str2))) ... } For the simple query you are trying to do, just use likelihood weighting Sorry that I formulated my question not very accurately. I form expressions/(logic conditions for parameters evidence and event) dynamically

[R] Strange error while passing string as an argument to the function in bnlearn package

2014-11-10 Thread Alexandr M
ion cpquery() - I also trued to use backslashes \' \" - doesn't work too -- Best regards, Alexandr [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] Shewhart Control Charts for Time Series data (qcc package)

2012-04-09 Thread Alexandr M
## Probably in this case samples are a consecutive subsets of the data but they are not grouped as in an example. I would like to apply qcc() like rollapply(width = sample_size, by = step) in such a way that 'width' would stands for a samples taken from an input data.

[R] NaN in nlminb

2012-02-29 Thread Alexandr
Good day everybody! Please help me with NaN result in nlminb function. I use the following: The function that present weighted maximum likelihood: garchLLH<- function(parm) { mu = parm[1]; omega = parm[2]; alpha = parm[3]; beta = parm[4] z = (x-mu); Mean = mean(z^2) # Use Filter Representation: e

Re: [R] Lattice: type="p" stopped working in panel.average

2010-10-19 Thread Alexandr Malusek
t;gaussian", ...) mypanel.average(FUN=min, pch=3, col="black", ...) mypanel.average(FUN=mean, pch=20, col="black", ...) mypanel.average(FUN=median, pch=0, col="black", ...) } ) Regards, Alexandr On Tue, Oct 19, 2010 at 1:52 PM, Deepayan Sarkar