[R] Lagged Covariate

2015-03-12 Thread Mahesh Samtani
I am doing some mixed effects modeling where we would like to test the hypothesis that the dependent variable (Dependent.var) as a function of time depends on the value of the covariate 6 months to a year earlier. The difficulty is that not all subjects have measurements every 6 months (as shown be

[R] Less than equal to symbol in ggplot2 legend text

2013-09-25 Thread mahesh samtani
Hello, I am trying to add a less than equal to symbol in a ggplot2 legend text. See sample code below. I have tried using the expression function and \u2264. I also tried adding labels to legend.text under theme. Neither of these 3 options work. Please help, Mahesh ++ Extra.column

Re: [R] How to compute the density of a variable that follows a proportional error distribution

2011-01-03 Thread mahesh samtani
rror distribution in terms of theta and omega? On Sun, Jan 2, 2011 at 10:08 AM, mahesh samtani wrote: > Hello, > I am trying to compute the density of a variable k that is either (1) > Normally distributed; (2) Log-Normally distributed; or (3) follows > proportional error distribution.

[R] How to compute the density of a variable that follows a proportional error distribution

2011-01-02 Thread mahesh samtani
Hello, I am trying to compute the density of a variable k that is either (1) Normally distributed; (2) Log-Normally distributed; or (3) follows proportional error distribution. I tried to search R-help and the answer for normal distribution was easy to find (please see 1c). I am not sure if my form

[R] Solution to differential equation

2010-12-15 Thread mahesh samtani
Hello, I am trying to find the analytical solution to this differential equation dR/dt = k1*(R^k2)*(1-(R/Rmax)); R(0) = Ro k1 and k2 are parameters that need to fitted, while Ro and Rmax are the baseline and max value (which can be fitted or fixed). The response (R) increases initially at an exp

[R] Problem with step.gam

2010-08-23 Thread mahesh samtani
Hello, I am running a step.gam with 21 explanatory variables. I run into a problem with the "Error: cannot allocate vector of size 437.9 Mb" if the list of explanatory variables is longer than 17. I have to comment out 4 of the variables and can't test than 17 variables (see below). I am wondering

[R] Toggle between the various pages for multi-page figures

2010-07-16 Thread mahesh samtani
Hello, I am a new R user having transitioned over from S-plus recently. I have a question that is probably very trivial but I am having trouble finding a solution. In S-plus, graphic pages are created as tabs when multi-page figures are created. I have shown the R code for xpose.VPC (a function wi

[R] Solution to differential equation for nls function

2010-06-30 Thread mahesh samtani
Hello, I am trying to find the analytical solution to this differential equation dR/dt = k1*R (1-(R/Rmax)^k2); R(0) = Ro k1, k2, and Rmax are parameters that need to fitted, while Ro is the baseline value (which can be fitted or fixed). The response (R) increases initially at an exponential rate

[R] Placing the ≥ symbol in the Trellis custom strip

2010-04-08 Thread mahesh samtani
Hello, I am trying to use ≥ symbol in the Trellis custom strip. The ascii ALT Key for this symbol is 242. However, when I try "\242 90 kg" I get the ¢ symbol in the trellis custom strip. Can some one kindly help me? Thanking you in advance, MNS [[alternative HTML version deleted]] ___