Re: [R] NA problem in rbind of an apply summary

2014-12-11 Thread Raffaello Vardavas
, 2014 at 10:34 PM, Raffaello Vardavas r_varda...@hotmail.com wrote: Dear All, I have a data fame. Each column has numerical values but some columns may have NA values. I'd like a table showing the summary statistics for each column. This is what I do: I first do the following: apply(df

[R] NA problem in rbind of an apply summary

2014-12-10 Thread Raffaello Vardavas
Dear All, I have a data fame. Each column has numerical values but some columns may have NA values. I'd like a table showing the summary statistics for each column. This is what I do: I first do the following: apply(df[,metrics],2,summary,na.rm=T) giving: $degree Min. 1st Qu. Median

[R] Installing package(s) into ... (as ‘lib’ is unspecified)

2013-06-13 Thread Raffaello Vardavas
Dear All, this may be a trivial problem. A collaborator has created an R package for internal use (not available on CRAN). This installs and works fine on my Mac but fails to install on windows. When I install the packagein windows by browing and pointing to the .zip file I get the

[R] glm - predict logistic regression - entering the betas manually.

2012-12-10 Thread Raffaello Vardavas
Dear All, I know this may be a trivial question. In the past I have used glm to make logistic regressions on data. The output creates an object with the results of the logistic regression. This object can then be used to make predictions. Great. I have a different problem. I need to make

Re: [R] remote connection to an Oracle database - using RODBC - RMySQL..?

2012-11-26 Thread Raffaello Vardavas
Nov 2012 14:16:15 -0600 CC: r-help@r-project.org To: r_varda...@hotmail.com On Nov 21, 2012, at 1:52 PM, Raffaello Vardavas r_varda...@hotmail.com wrote: Dear users, I can access an database oracle database using sql developer. This was done by importing an xml file

[R] remote connection to an Oracle database - using RODBC - RMySQL..?

2012-11-21 Thread Raffaello Vardavas
Dear users, I can access an database oracle database using sql developer. This was done by importing an xml file that contains the login details - username, password and specifies that it uses the KERBEROS_AUTHENTICATION. I'm trying to connect R - so that it can access this database - do sql

[R] (no subject)

2010-12-30 Thread Raffaello Vardavas
Dear Help, I am using the library RODBC to export data into an excel file with different sheets. Here is the code: library(RODBC) save2excel - function(x, t.name,channel) { sqlSave(channel, x, tablename = t.name, rownames = FALSE) } ## Write Parameters to Excel channel -

[R] lattice package - wireframe plot : adding more than one surface and addiding a curve overlaid on the plot

2010-09-10 Thread Raffaello Vardavas
Dear R help, Suppose I have a dataframe with three columns named p, v and C. Here C is a function of both p and v. I can plot the surface C(p,v) using the package lattice using the function wireframe. Now if I have another dataframe - with 2 columns named p_ind and v_ind and pind is a

[R] NNET conditional Multinomial logit

2009-05-26 Thread Raffaello Vardavas
Please, could you tell me how to enter a mixed or a purely conditional multinomial logit model in NNET. I know how to do a multinomial logit in NNET but I don't know how to do conditional or mixed models using this package. I do know how to do this with VGAM - but would like to compare my

[R] VGAM and cnstraints

2009-03-26 Thread Raffaello Vardavas
Dear R-Users, I am learning how to use the package VGAM to do multinomial regressions. I have worked through the example provided by UCLA stats group: http://www.ats.ucla.edu/stat/r/dae/mlogit.htm However - what I would like to learn is how to use the constraint option. So in the example