An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090128/a65a0f84/attachment-0001.pl>
Please Help for Augmented Prediction Plot
6 messages · Chunhao Tu, Dieter Menne, patricia garcía gonzález +1 more
Chun-Hao Tu <tch28 <at> hotmail.com> writes:
Hi R users,I have a question about augmented prediction plot (?augPred). The covariate of my data set is c(0, 0.01, 0.1, 1, 10, 100, 1000) and I have fitted a nonlinear mixed effects model. I use plot(augPred(out.nlme....)) to get the augmented prediction plot. However, because the scale of the covariate is too large thus I am not able to see the detail difference at c(0,0.01, 0.1, and 1). Could anyone tell me how to enlarge the plot at that range "c(0,0.01, 0.1, and 1)" ?
Very, very likely, if you have such a large range (frequently a drug dose), you should think of doing a (shifted log?) transform of your data initially. Try to do a residual plot plot(result(nlme)) might work first to check for this. Maybe even plotting (0.001,0.01,...) would be more useful. Otherwise, you could always use pred() manually and do a trellis plot with some (log+x) transformed data. Dieter
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090128/4b8cf62c/attachment-0001.pl>
try this:
s1 <- letters[1:10]
e <- LETTERS[1:10]
q <- c("a","a","c","b","d","d","a","e","b","a")
e[match(q, s1)]
I hope it helps.
Best,
Dimitris
patricia garc?a gonz?lez wrote:
Hi all,
I am trying to create a vector with the information contained in a determined matrix. Let me explain myself. I have a vector like this:
q <- c("a","a","c","b","d","d","a","e","b","a")
And a matrix like:
s1 <- c("a","b","c","d","e","f","g","h","i","j")
e <- c("A","B","C","D","E","F","G","H","I","J")
s <- cbind( e, s1 )
The matrix s contains the correspondences between vector q and e. And I want a vector of elements of vector e, but in the order of q. The result should be like:
q <- c ("a","a","c","b","d","d","a","e","b","a")
res<-c ("A","A","C","B","D","E","A","E","B","A")
So I have to take the elements of vector e and make a matching with elements in vector q. Any idea?Sorry If I didn't explain myself well.
Thanks
Patricia
_________________________________________________________________ [[alternative HTML version deleted]] ______________________________________________ R-help at 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.
Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090128/d46056d2/attachment-0001.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090128/d4700c66/attachment-0001.pl>