[R] [R-pkgs] package JMbayes -- version 0.5-0

2014-01-17 Thread D. Rizopoulos
*** Apologies for cross posting *** Dear Colleagues, Dear R-users, I would like to announce the release of the new version of package JMbayes available from CRAN (http://CRAN.R-project.org/package=JMbayes). This package fits joint models for longitudinal and time-to-event data under a

[R] calculate an value in dependence of another column

2014-01-17 Thread Mat
Hello together, i have a little problem, to create a new column, in a data.frame. I know i can calculate one column with as a example 2 like this: ORDER$WEIGHT - ORDER$VALUE * 2 But how can i create the ORDER$WEIGHT with different numbers, like this one. I have a data.frame like this one:

Re: [R] Multiple imputation, multinomial response random effects

2014-01-17 Thread Ruben van eijk
Dear Davina, Unfortunately (or luckily), I have almost the exact same problem. I want to do a multilevel analysis with imputed data and both include mixed and random effects in the regression model. I have imputed my data with de Hmisc package (aregImpute), however, the rest of the functions

Re: [R] calculate an value in dependence of another column

2014-01-17 Thread Gerrit Eichner
Hi, Mat, e. g., try something like ORDER$VALUE * c( NY = 3, BER = 2, FRA = 1, WAS = 4)[ ORDER$DESTINY] Hth -- Gerrit On Fri, 17 Jan 2014, Mat wrote: Hello together, i have a little problem, to create a new column, in a data.frame. I know i can calculate one column with as a example 2

[R] Non-linear models estimability

2014-01-17 Thread Vasco Cadavez
Dear R Users, I'm fitting non-linear models using nlme package. How can I check models estimability? Data were obtained using an incomplete factorial design: effect 1 = 4 levels effect 2 = 5 levels effect 3 = 5 levels effect 4 = 5 levels Cross table example for effect 1 and effect 2:

Re: [R] calculate an value in dependence of another column

2014-01-17 Thread Mat
thanks a lot, works perfectly -- View this message in context: http://r.789695.n4.nabble.com/calculate-an-value-in-dependence-of-another-column-tp4683727p4683732.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] Estimating parameters of 3 parameters lognormal distribution

2014-01-17 Thread Göran Broström
On 01/17/2014 08:42 AM, Vito Ricci wrote: Hi Goran, thanks for your suggestion, but I believe it's not helpful for me... phreg statement Proportional hazards model with parametric baseline hazard(s). Allows for stratification with dif-ferent scale and shape in each stratum, and left

Re: [R] Estimating parameters of 3 parameters lognormal distribution

2014-01-17 Thread Frede Aakmann Tøgersen
In package MASS there is the fitdistr function using maximum likelihood estimation to infer on the parameters of distributions based on observed data. One of the arguments of fitdistr () allows you to specify the probability density function. You only know how the parametrization of your three

Re: [R] Estimating parameters of 3 parameters lognormal distribution

2014-01-17 Thread Vito Ricci
OK. It runs fine! Many thanks Frede. Regards. Vito   Se non ora, quando? Se non qui, dove? Se non tu, chi? Il Venerdì 17 Gennaio 2014 12:38, Frede Aakmann Tøgersen fr...@vestas.com ha scritto: In package MASS there is the fitdistr function using maximum likelihood estimation to infer on

Re: [R] Estimating parameters of 3 parameters lognormal distribution

2014-01-17 Thread Frede Aakmann Tøgersen
Really, the thanks go to Prof. Ripley et al, maintainig that package. Br. Frede Oprindelig meddelelse Fra: Vito Ricci Dato:17/01/2014 13.00 (GMT+01:00) Til: Frede Aakmann Tøgersen ,Göran Broström ,r-h...@stat.math.ethz.ch Emne: Re: [R] Estimating parameters of 3 parameters

Re: [R] Doubt in simple merge

2014-01-17 Thread PIKAL Petr
Hi are you really sure that age in Younger is factor? If it was numeric you can post process result of merge to get rid of NA Younger$age-as.numeric(as.character(Younger$age)) Warning message: NAs introduced by coercion komplet-merge(Elder, Younger, all=T) komplet[complete.cases(komplet),]

Re: [R] Doubt in simple merge

2014-01-17 Thread Marc Schwartz
On Jan 16, 2014, at 11:14 PM, kingsly ecoking...@yahoo.co.in wrote: Thank you dear friends. You have cleared my first doubt. My second doubt: I have the same data sets Elder and Younger. Elder - data.frame( ID=c(ID1,ID2,ID3), age=c(38,35,31)) Younger - data.frame(

[R] Library splines

2014-01-17 Thread Christof peternell
Hello, I'm writing my Master Thesis. I'm using the R library splines and i want to cite it correctly. I have found the following documentation: http://127.0.0.1:20742/library/splines/html/splines-package.html My problem is, i didn't find the year when this library was released. Would you please

[R] error message when I try to use help to look at html files

2014-01-17 Thread DonaldR706
Hi When I use my 64bit version of R I get error messages when I use any of the help files. I error in start dynamic help. along with unable to create socket This does not happen when I use the 32bit version of the same program. Thank you in advance for any advice you can give me Don Rock

[R] Implementing a formula into a column of a data frame

2014-01-17 Thread Norman McBride
Now, if I were to move the data over from an excel doc would that change anything. I do understand that that I would have to change it to a csv document and create a variable for it. Just to give you a more visual understanding of what I am doing I attached a picture of the head of the data. So

Re: [R] Library splines

2014-01-17 Thread Prof Brian Ripley
On 17/01/2014 12:01, Christof peternell wrote: Hello, I'm writing my Master Thesis. I'm using the R library splines and i want to cite it correctly. I have found the following documentation: http://127.0.0.1:20742/library/splines/html/splines-package.html My problem is, i didn't find the year

Re: [R] predefined area under the curve

2014-01-17 Thread Lorenz, David
Elisa, Part of the issue is that there is no unique solution. You could increase each of the 6 values by a fixed amount to make up the 0.242003 difference in area, or you could increase them proportionally, among many other schemes. I'll outline an approach and you can decide how you want to

Re: [R] demonstrating R in introductory class using point-and-click software

2014-01-17 Thread Christopher W. Ryan
I've never taught a complete course, but I recently conducted 2 introduction to R workshops, each about 5 hours long, for a class of about 15 high school science students. Very basic. We emphasized graphics. But by the end, we had gotten into conceptual stuff about the population vs the sample,

Re: [R] predefined area under the curve

2014-01-17 Thread eliza botto
Dear Dave, Thankyou very much. With your outlined approach hopefully, I would get through. Thanks once again. Elisa From: lor...@usgs.gov Date: Fri, 17 Jan 2014 08:52:38 -0600 To: r-help@r-project.org Subject: Re: [R] predefined area under the curve Elisa, Part of the issue is that

Re: [R] Library splines

2014-01-17 Thread COLLINL
Hello, I'm writing my Master Thesis. I'm using the R library splines and i want to cite it correctly. I have found the following documentation: http://127.0.0.1:20742/library/splines/html/splines-package.html Christof, if you contact the authors of the package, or look on their websites,

[R] Implementing a Formula into a Column of a Data Frame

2014-01-17 Thread Norman McBride
Now, if I were to move the data over from an excel doc would that change anything. I do understand that that I would have to change it to a csv document and create a variable for it. Just to give you a more visual understanding of what I am doing I a portion of the head of the data is shown below.

Re: [R] Implementing a Formula into a Column of a Data Frame

2014-01-17 Thread MacQueen, Don
Suggest: mydat - structure(list(`Time (Seconds)` = c(20.318162, 21.316219, 22.316277, 23.316334, 24.316391, 25.316448, 26.316505, 27.315562, 28.315619, 29.315677, 30.315734, 31.315791, 32.315848, 33.315906, 34.315963, 35.31602, 36.316077, 37.316134, 38.316192, 39.316249), `Battery Temperature

[R] eliminating white space in lattice plot

2014-01-17 Thread Gerrit Draisma
Dear R-users, How do I get rid of the white space above and under a plot made with lattice xyplot? I searched the documentation but could not find how to do it. Standard lattice plots are square, but sometimes I want a wide but low graph and use aspect parameter to obtain such a graph. But then

Re: [R] eliminating white space in lattice plot

2014-01-17 Thread arun
Hi, May be this helps:  x11(width=10,height=3)  xyplot(y~x,data=X,type=l,aspect=0.25)  dev.copy2pdf(file=wideplot.pdf) dev.off() A.K. On Friday, January 17, 2014 11:26 AM, Gerrit Draisma gdrai...@xs4all.nl wrote: Dear R-users, How do I get rid of the white space above and under a plot made

Re: [R] calculate an value in dependence of another column

2014-01-17 Thread arun
Hi, You could try: dat1 - read.table(text=ORDER  DESTINY    VALUE A    NY  100 B    BER  10 C    FRA    100 D    WAS    50 E    BER 20,sep=,header=TRUE,stringsAsFactors=FALSE)  within(dat1,WEIGHT -

Re: [R] barplot: segment-wise shading

2014-01-17 Thread Marc Schwartz
On Jan 16, 2014, at 9:09 PM, Martin Weiser weis...@natur.cuni.cz wrote: Jim Lemon píše v Pá 17. 01. 2014 v 13:21 +1100: On 01/17/2014 10:59 AM, Marc Schwartz wrote: ... Arggh. No, this is my error for not actually looking at the plot and presuming that it would work. Turns out that

[R] R build a package

2014-01-17 Thread Hui Du
Hi All, While building a package by 'R CMD INSTALL --build my-own-pack-name', I always got an error like Error in normalizePathpath.expandpath, winslash, mustWork: path[1] = ./DESCRIPTION: Access is denied. I checked the permission of my DESCRIPTION file and it looks right. Does anybody

[R] Start-up functionalities bypassing Rprofile

2014-01-17 Thread Christofer Bogaso
Hi again, Is there any way to manipulate the start-up functionalities in R bypassing Rprofile? I dont have administrative rights in the system which I use, therefore cant not make any change in Rprofile file which resides in C:\Program files\ In start-up, basically I want to do following

Re: [R] Start-up functionalities bypassing Rprofile

2014-01-17 Thread Sarah Goslee
Hi, You can create a local Rprofile file http://www.statmethods.net/interface/customizing.html http://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html Sarah On Fri, Jan 17, 2014 at 1:21 PM, Christofer Bogaso bogaso.christo...@gmail.com wrote: Hi again, Is there any way to

Re: [R] Estimating parameters of 3 parameters lognormal distribution

2014-01-17 Thread Rolf Turner
Can you please tell us (me!) how you chose starting values? Out of curiosity I tried the following: set.seed(42) x - rlnorm(100,1,2) + 3 require(MASS) strt - list(mu=1,sigma=2,gamma=3) fit - fitdistr(x,densfun=function(x,mu,sigma,gamma)

Re: [R] eliminating white space in lattice plot

2014-01-17 Thread Duncan Mackay
Hi The original email did not reach me so I am using this to reply There is the trellis.device function for lattice graphs which in the past I have had to use to create a pdf as just pdf would not do it ?trellis.device calls the device in this case pdf() ? pdf has the paper specification

[R] Any recommendations for reusable profiling of name fields?

2014-01-17 Thread Jeff Johnson
Hi, I'm pretty new to R and am trying to develop a reusable set of scripts that I can use to profile various data types and common fields in our database. I know that what I'm asking is a can of worms, so please bear with me. :) For example, we store a person's first name, last name, phone

[R] For loop on column names

2014-01-17 Thread Jeff Johnson
I'm trying to find a more efficient to calculate the percent a field is populated and repeat it for each field (column). First, I'm counting the number of lines: lines - as.integer(countLines(extract) - 1) dput(lines) 10L extract - 'C:/Users/jeffjohn/Desktop/batchextract_100k_sample.csv'

[R] *** caught segfault *** :: a common problem in 3.0.2

2014-01-17 Thread Christopher T Gregg
Hi, I have struggled recently with R crashing with the following error in various contexts. It has occurred when running the R package RCytoscape, a package we generated internally and when running the base system. I have seen that this is an issue with the Mavericks OS

Re: [R] Library splines

2014-01-17 Thread Lars Qviller
You can just write : citation(splines) in the R-console. You will then get a suggestion with a BibTeX entry if you use LaTeX Best Lars On 01/17/2014 04:28 PM, coll...@pitt.edu wrote: Hello, I'm writing my Master Thesis. I'm using the R library splines and i want to cite it correctly. I

[R] Performing same steps on multiple dataframes using a loop - vijay

2014-01-17 Thread Vijay
I have three data frames df.1, df.2 and df.3. All have the same structure I.e here is df.1 Namenetwork speed Atlanta_Ga. LTE.10 Hartford_CT. HSPA. 4 Seattle_WA. LTE. 12 I want

Re: [R] Predicting probabilities from a logistic regression by hand (in code)

2014-01-17 Thread David Winsemius
On Jan 16, 2014, at 6:53 PM, erikpukinskis wrote: Thanks for looking at this, I've been tearing my hair out for a day or so now. I have done a multiple variable logistic regression in R, and obtained my coefficients. I am able to make predictions for the training data in R without

Re: [R] Implementing a formula into a column of a data frame

2014-01-17 Thread David Winsemius
On Jan 17, 2014, at 6:30 AM, Norman McBride wrote: Now, if I were to move the data over from an excel doc would that change anything. I do understand that that I would have to change it to a csv document and create a variable for it. Just to give you a more visual understanding of what I am

Re: [R] Performing same steps on multiple dataframes using a loop - vijay

2014-01-17 Thread Bert Gunter
Is this homework? Most of us object to doing homework here. If not, have you gone through any R tutorials? This looks like pretty basic stuff, and one has to wonder if you can't do this, why are you using R at all? Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374

Re: [R] Performing same steps on multiple dataframes using a loop - vijay

2014-01-17 Thread arun
Hi, Try: df.1 - read.table(text=Name    network    speed Atlanta_Ga.  LTE.    10 Hartford_CT.  HSPA.  4 Seattle_WA.  LTE.    12,sep=,header=TRUE,stringsAsFactors=FALSE) df.1cleaned - within(df.1,{

[R] shading and estimating area abetween two cdf curves

2014-01-17 Thread Peter Maclean
I would like to shade the area between two curves generated by the ecdf function. There are examples such as those explained here http://www.alisonsinclair.ca/2011/03/shading-between-curves-in-r/ These examples do not apply to the objects generated by the ecdf function. #