[R] allowing individual level correlations to differ by cluster in lme in R

2011-06-02 Thread Edmond.Ng
Dear R-listers, I am fitting bivariate mixed models for cost-effectiveness data of cluster randomized trials using lme in R. So I have individuals nested within clusters. My response variable is a vector with bivariate response (individual level costs and effects) stacked into a single colum

[R] Snowfall: "cannont open connection " problem (repost in plain text)

2010-06-24 Thread Edmond.Ng
<< Apologies for posting my question in HTML earlier. Reposted in plain text now.>> Dear R-listers, I have been using Snowfall (version 1.84) for parallel computing on a quad-PC running Windows 7 for a month or so without much problem. I started having problems runnnig R with Snowfall over o

[R] Snowfall: "cannont open connection " problem

2010-06-24 Thread Edmond.Ng
Dear R-listers, I have been using Snowfall (version 1.84) for parallel computing on a quad-PC running Windows 7 for a month or so without much problem. I started having problems runnnig R with Snowfall over our network when a new Novell client was installed for Windows 7. I experinenced netwo

Re: [R] get current window (device) size

2010-02-15 Thread Edmond.Ng
Hi David, Thank you for your advice. I have just figured why neither the suggestion of 'par("din")' or "dev.size()" works for me. Having specified 'rescale="fixed"' in a preceding windows() command seems to prevent R from reporting the current window size. See here: windows(width=7.5,height=6,r

Re: [R] get current window (device) size

2010-02-15 Thread Edmond.Ng
Dear Prof Ripley, Thank you very much for your advice. In fact, I have already tried 'par("din")'. It does not seems to pick up the changes made to the window. For example, I issued the par command after the plot: > par("din") [1] 7.5 7.0 [changed window size] > par("din") [1] 7.5 7.0 The res

[R] get current window (device) size

2010-02-15 Thread Edmond.Ng
Dear R-listers, I am writing a function that will generate a simple plot for the user . The size of the window (that contains the plot) may not be what the user wants. Supposing the user adjusts the window to a size of her/his choice, I would like to be able to save the new window size and