Re: [R] rlnorm behaviour

2016-06-14 Thread Ayyappa Chaturvedula
ombination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > 2016-06-14 17:31 GMT+02:00 Ayyappa Chaturvedula : > >> Thank you very much for your kind support. The length of m

[R] rlnorm behaviour

2016-06-14 Thread Ayyappa Chaturvedula
Dear Group, I am trying to simulate a dataset with 200 individuals with random assignment of Sex (1,0) and Weight from lognormal distribution specific to Sex. I am intrigued by the behavior of rlnorm function to impute a value of Weight from the specified distribution. Here is the code: ID<-1:20

[R] VIM package

2016-06-09 Thread Ayyappa Chaturvedula
Dear R users, I am trying to use VIM (Visualization and Imputation of Missing Values) package in R. When I try to install the VIM library (library(VIM)), I am getting this: Error in library(VIM) : there is no package called ‘VIM’. I appreciate any comments on this problem. Regards, Ayyappa

Re: [R] Time and Date formatting

2013-04-23 Thread Ayyappa Chaturvedula
3 19:54, Rui Barradas escreveu: >> Hello, >> >> See if any of the following will do. >> >> >> DATE <- "14/07/2010" >> TIME <- "20:21" >> paste(DATE, TIME) >> as.POSIXct(paste(DATE, TIME), format = "%d/%m/%Y %H:%

[R] Time and Date formatting

2013-04-23 Thread Ayyappa Chaturvedula
Dear Group, I have a problem with time date formatting. I have Date and Time in different columns in a .csv file and want to have a column with Date and Time together. I could format the date into the right mode using strptime and as.Date functions. I am not able to do that with TIME column. I

Re: [R] Density plots

2012-08-03 Thread Ayyappa Chaturvedula
; College Station, TX 77843-4352 > >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Ayyappa Chaturvedula >> Sent: Friday, August 03, 2012 10:37 AM >> To: r-help@r-project.org >> Subjec

[R] Density plots

2012-08-03 Thread Ayyappa Chaturvedula
Dear group, I need help on two problems: 1. I am trying to plot density plots for each individual in 8 occasions. I can do this by subject wiht the code below: par(mfrow=c(4,2)) plot(density(all8scenarios$SIMCONC[all8scenarios$ID==1&all8scenarios$WSEQ==0])) plot(density(all8scenarios$SIMCONC[all

[R] Help on merging without a common variable

2012-08-02 Thread Ayyappa Chaturvedula
Dear All, I want to create a dataset for a NONMEM simulation. I have a dataframe with individual PK parameters and want to create a dosing sceinario in a second dataframe. I want to merge them both so that every individiual's PK parameters are combined with the dosing scenario into one. I do not

[R] selection by two unique variables

2012-05-02 Thread Ayyappa Chaturvedula
Dear Group, I am working with a large dataset where I need to select for each unique id the the unique lastpk row. Here is a sample subject: id wtdt wt lastpk 64050256 2010-09-18 275 2010-09-16 64050256 2010-09-19 277 2010-09-18 64050256 201

[R] Coding help

2012-02-29 Thread Ayyappa Chaturvedula
Dear Group, I have the following dataset: ID REPI DV CONC SS 11 156.84 116 0 1 2 146.56 116 0 13 115.13 116 0 14 207.81 116 0 15 129.53 116 0 16 151.48 116 0 17 158.95 116 0 18 192.37 116 0 19 32.97 116 0 1 10

Re: [R] Odp: Generating unque patient IDs

2012-01-11 Thread Ayyappa Chaturvedula
Dear all, I am sorry if I misstated the problem. The roundig issue is with NONMEM software not with R. But the suggestions are helpful. Regards,Ayyappa Chaturvedula On Jan 11, 2012, at 12:14 PM, David Winsemius wrote: Unfortunately the "rounding effect" (which I assumed was

[R] Generating unque patient IDs

2012-01-11 Thread Ayyappa Chaturvedula
Dear group, I am trying to prepare a NONMEM friendly dataset for population PK analysis. My patient IDs are 10 digit long and NONMEM is losing precison and rouding the last couple of digits. I need to generate unique Patient IDs fromt he current 10-digit IDs. Ihave total 250 subjects so I apprec

[R] help with xyplot

2011-12-27 Thread Ayyappa Chaturvedula
Dear group, I am trying to plot individual plots of TIME vs DV using xyplot. I used the following code: xyplot(DV~TIME|CID,data=gendiff,layout=c(4,4,20)) It works fine but the problem is that the plot is not saving all the pages, I could see only the 20th page. How to make all the pages avaialb

Re: [R] Plot history

2011-09-17 Thread Ayyappa Chaturvedula
Dear Group, Can you help me solve the problem with calculating Time Post dose using date time fomat? Here is information for subject 1 and I appreciate your help for code to generate time post dose from the first dose in each individual. Thank you in advance. Regards, Ayyappa ID DA

[R] Plot history

2011-08-29 Thread Ayyappa Chaturvedula
Dear R group, I am trying to plot uisng a for loop. Here is the script: for (i in unique(cfn$ID)){ plot(cfn$TIME[cfn$ID==i],cfn$DV[cfn$ID==i],pch=16)} I could access only the last plot of the series and cannot go back to see all the plots. I appreciate your help in resolving this issue and also

[R] Scripting help

2010-09-15 Thread Ayyappa Chaturvedula
Dear all, I am new to R and this group. I have good experience in S scripts. I need some orientation on data imports, general plotting functions. Can you please direct me? Regards,Ayyappa Chaturvedula __ R-help@r-project.org mailing list https