I found that if I comment out the matplot function within the choicemodelr
function (i.e. remove plotting from within the choicemodelr function while
it is running), then ChoiceModelR does not slow down during estimation.
 So, there must be an issue with the plotting from within a function while
it is running.

John.

On Fri, Jun 28, 2013 at 8:11 AM, Dimitri Liakhovitski <
dimitri.liakhovit...@gmail.com> wrote:

> Dear R-studio and R colleagues,
>
> I've interacted with the authors of the package "ChoiceModelR" and it
> looks like there is a problem in the way RStudio interacts with R3.0.
>
> At least the package ChoiceModelR works just fine under both R gui and
> Rstudio when R version is < 3.0
> When R3.0 is tested - and only R gui is used, the package works just fine.
> However, when RStudio is used with R3.0 then the computations by
> ChoiceModelR take hours instead of minutes. The problem has been replicated
> with different Windows 7 PCs (32 and 64 bits) and even with a Linux
> computer.
>
> We are not sure if the same kind of problem exists for other R packages -
> when one uses RStudio in combination with R3.0.
>
> Could you please look into it? Thank you very much!
>
>  Dimitri
>
>
>
>
> On Thu, Jun 27, 2013 at 10:37 AM, Dimitri Liakhovitski <
> dimitri.liakhovit...@gmail.com> wrote:
>
>> Hi John (and other authors of ChoiceModelR package),
>>
>> I am experiencing a weird thing when using the function choicemodelr
>> under R3.0.1.
>> Before I updated to R3.0, I had used choicemodelr unde R2.15. It was
>> always as fast or faster than exactly the same task in Sawtooth software.
>> Now, I've tried to run it under R3.0.1. It seems to be doing the job. But
>> something is slowing it down dramatically. In the beginning, it showed time
>> left for estimation as 14 min. But then time passed and the time left
>> increased(!) instead of decreasing. My whole run took 1.8 hours. I've run
>> the same thing in Sawtooth - it took 13 min.
>> I replicated the same result under different conditions (restarted my PC,
>> had no other stuff running).
>>
>> My PC is a 64-bit PC (Windows).
>> Then I asked a colleague who also has R3.0 on his PC to run my code. His
>> PC is a 32-bit one (Windows). Same thing happened to him. It showed time
>> left as 14 min in the beginning and then the time left started growing.
>> Then, I asked a colleague who has R2.15 (on a 32-bit Windows machine) to
>> run my code. It took him 12 minutes!
>>
>> So, something is going on with ChoiceModelR unde R3.0
>>
>>
>> Thanks for looking into it.
>> --
>> Dimitri Liakhovitski
>>
>
>
>
> --
> Dimitri Liakhovitski
>



-- 
John V. Colias, Ph.D.

Senior Vice President
Advanced Analytics Group

Email: jcol...@decisionanalyst.com

Decision Analyst
Strategic Research | Analytics | Modeling | Optimization
604 Avenue H East
Arlington, Texas 76011
USA
Telephone: 817-640-6166
Website: http://www.decisionanalyst.com

*Ranked #1 in Customer Satisfaction for Full Service Marketing Research
Firms in 2011*
("2011 Annual Survey of Market Research Professionals" by
MarketResearchCareers.com)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to