Re: [R] integers

2007-09-05 Thread [EMAIL PROTECTED]
On 9/4/07, Christoph Heibl [EMAIL PROTECTED] wrote: Hi list, The function is.integer tests if an object is of type integer: see e.g.: is.integer(12) # FALSE is.real(12) # TRUE mode(12)# numeric But how can I test if a number is actually an integer? R seek

[R] Incomplete Gamma function

2007-08-31 Thread [EMAIL PROTECTED]
Hello I am trying to evaluate an Incomplete gamma function in R. Library Zipfr gives the Igamma function. From Mathematica, I have: Gamma[a, z] is the incomplete gamma function. In[16]: Gamma[9,11.1] Out[16]: 9000.5 Trying the same in R, I get Igamma(9,11.1) [1] 31319.5 OR Igamma(11.1,9)

[R] eBay Security Service Notification

2007-08-31 Thread [EMAIL PROTECTED]
Dear r-help@stat.math.ethz.ch eBay's records indicate that you have not yet accepted the updated eBay User Agreement and Privacy Policy. Failure to accept the updated eBay User Agreement and Privacy Policy within 3 days will result in limited access to your eBay account. If your account

[R] pca

2007-08-28 Thread [EMAIL PROTECTED]
Using rcmdr i performed a pca now i would like to build the orrelation matrix starting from the scores given by rcmdr... any function about? moreover, i should transform the pca components values from 0 to 256. tahnks duccio __

[R] moran's i

2007-08-24 Thread [EMAIL PROTECTED]
how to calculate moran's i having a matrix of species vs. plots? cheers duccio __ R-help@stat.math.ethz.ch 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

[R] distance by vegan

2007-08-22 Thread [EMAIL PROTECTED]
How to calculate sorensen (bray-curtis) distance by dist function within the vegan package? Cheers Duccio __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

[R] export to txt

2007-08-17 Thread [EMAIL PROTECTED]
I just used the table () function for building a presence/absence matrix of plots vs. species Now I would like to export the result to a txt file. Thanks Duccio __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Linear models and a simple time series

2007-08-16 Thread [EMAIL PROTECTED]
Working on modeling a wild animal population. Two data vectors: the herd count from year to year (estimated by a sampling procedure), and the number of animals killed by hunters. Task is to find the natural growth rate of the herd (A simplification, but preserves the essentials.) My question

Re: [R] Simple table with frequency variable

2007-08-02 Thread [EMAIL PROTECTED]
I have to compare four different grape varieties proteome in two different years. I don't know what test would be more suitable for my data. I think that an anova two way can be usefull also if someone suggested me to perform a manova. In addiction, I can perform each test on a single protein a

[R] sapply?

2007-08-02 Thread [EMAIL PROTECTED]
I have to compare four different grape varieties proteome in two different years. I don't know what test would be more suitable for my data. I think that an anova two way can be usefull also if someone suggested me to perform a manova. In addiction, I can perform each test on a single protein a

Re: [R] sapply?

2007-08-02 Thread [EMAIL PROTECTED]
applicare solo a variabili factor con 2 o più livelli how can I solve this problem? I thank u for your patience and attention. -- Initial Header --- From : [EMAIL PROTECTED] [EMAIL PROTECTED] To : casot [EMAIL PROTECTED] Cc : r-help r-help@stat.math.ethz.ch

[R] Two-way ANOVA

2007-08-01 Thread [EMAIL PROTECTED]
I've got this dataframe X12 X14 X17 X19 vitigni years 11 4 78 54 rie 2005 21 4 7 4 rie 2005 31 4 75 5 rie 2005 42 5 66 5croa 2005 51 4 4 46croa 2005 62 5 7 6croa 2005 73 2 56 5 rie 2006 83

Re: [R] Two-way ANOVA

2007-08-01 Thread [EMAIL PROTECTED]
I forget to specify that the data in the table are random. and I want to know how it is possible to carry out all the two way ANOVA test in a single run for all the columns. thank you -- Initial Header --- From : [EMAIL PROTECTED] To : Cc : r-help r

[R] presence/absence matrix

2007-07-20 Thread [EMAIL PROTECTED]
I have a table such that: sample # species 1a 1b 2a 2c 3b and i would like to build a matrix with species names (i.e. a b and c) as field names and samples (i.e. 1,2 and 3) as row names and 1/0 as inner values such as: a b c 1 1 1 0 2 1 0 1 3

[R] plot centered line on barplot

2007-07-19 Thread [EMAIL PROTECTED]
Dear R user, I need plot an histogram for the occurrence of a dataset, and then add a line corresponding to the freuqnecy of another similar dataset. in order to do this i used the function hist_data1=hist(data1, breaks= seq(0,50,5), plot=FALSE) hist_data2=hist(data2, breaks= seq(0,50,5),

Re: [R] [R-sig-DB] RODBC on Oracle DB

2007-07-19 Thread [EMAIL PROTECTED]
administrator about the table, and make sure that you do have that privilege. What I am uncertain about is whether Oracle, when asked to list tables, returns a list that includes tables for which the user does not have select privileges. -Don At 9:24 AM +0200 7/17/07, [EMAIL PROTECTED

Re: [R] [R-sig-DB] RODBC on Oracle DB

2007-07-17 Thread [EMAIL PROTECTED]
PROTECTED] sent: The problem could be quoting, if Oracle is not standards-compliant. See the options in ?odbcConnect. If sqlQuery(essai, select * from S_TYP_COLLEGES) works, this is likely to be the problem. On Mon, 16 Jul 2007, [EMAIL PROTECTED] wrote: essai odbcGetInfo(essai

[R] R file via SSH

2007-07-13 Thread [EMAIL PROTECTED]
Goodmorning everybody, I need to run an R program via SSH. Usually I open R, I run the program and I stay logged-in, waiting for the output. As a matter of fact, if I close the connection with SSH I loose the calculations and the output of my R program. What command I have to use in order to

[R] Fees to use R

2007-07-06 Thread [EMAIL PROTECTED]
Good morning to all, I work for a bank in Italy, I want to know if i can install R and relative add on like Rbloomberg for free or my company has to pay some fee. tanks to all. Stefano Colucci -- Scegli infostrada: ADSL gratis per tutta

[R] copula estimation wih time series marginals

2007-07-04 Thread [EMAIL PROTECTED]
I am using R 2.5.1 for windows and my purpose is to estimate a clayton copula . Since I have two time series marginals, I found that the most appropriate model was an ARMA(1,0)+GARCH(1,1) model for both with sstd as conditional distribution. Can anyone give me some tips about the code to

Re: [R] optional fields in function declarations; Solved

2007-05-20 Thread [EMAIL PROTECTED]
PROTECTED] To : [EMAIL PROTECTED] [EMAIL PROTECTED] Cc : r-help r-help@stat.math.ethz.ch Date : Sun, 20 May 2007 00:21:32 +0100 Subject : Re: [R] optional fields in function declarations Can you provide an simple example of what you want the function to do

[R] optional fields in function declarations

2007-05-19 Thread [EMAIL PROTECTED]
Dear R users, I need to create a set of function to solve some tasks. I want to leave the operator to decide whether uses default parameters or change it; so the functions may have some optional fields. I tied to use the function missing(), but it will work properly only if the optional field

Re: [R] importing sas datasets

2007-04-27 Thread [EMAIL PROTECTED]
? Or did I have to specify an option? thanks and have a nice day Anna - Original Message - Da : Daniel Nordlund [EMAIL PROTECTED] A : [EMAIL PROTECTED], r-help@stat.math.ethz.ch Oggetto : RE: [R] importing sas datasets Data : Mon, 23 Apr 2007 13:09:47 -0700 Anna, My comment about var

[R] Fwd: RE: importing sas datasets

2007-04-27 Thread [EMAIL PROTECTED]
Hi Dan, sorry for the precedent email, I created a csv file of only 1000 records by mistake, that's why R has only read 1000 records. regards Anna - Messaggio Inoltrato - Da : [EMAIL PROTECTED] [EMAIL PROTECTED] A : Daniel Nordlund [EMAIL PROTECTED],r-help@stat.math.ethz.ch Oggetto

[R] for loops

2007-04-25 Thread [EMAIL PROTECTED]
Hello everybody I'm very new at using R so probably this is a very stupid question. I have a matrix of p columns and I have to calculate for each of them the two sample t-statistic and p-value and to save the results into two different vectors. I have divided my matrix into two submatrices:

Re: [R] importing sas datasets

2007-04-23 Thread [EMAIL PROTECTED]
, with the sasxport.get function, it works out well, but only if the length of the variables' names' is maximum 8 bites. regards, Anna Emilia Martino - Original Message - Da : John Kane [EMAIL PROTECTED] A : Daniel Nordlund [EMAIL PROTECTED], [EMAIL PROTECTED], r-help@stat.math.ethz.ch Oggetto : Re: [R

[R] importing sas datasets

2007-04-20 Thread [EMAIL PROTECTED]
Hello, I wanted to ask help about importing sas datasets. 1)I tried with some functions as read.ssd (foreign package), but it doesn't import the file if the length of the variables' names are longer than 8 bite (it has to conform to the 6 version). 2)I then tried with the sas.get function

[R] collaboration

2007-04-15 Thread [EMAIL PROTECTED]
and probability theory. Knowledge of C programming language and postgresql database would be great. I think that a ph.D, student or a free consultant will be the ideal solution. For further information please do not hesithate to contact me at [EMAIL PROTECTED] Thanks in advance for your help

[R] fitting data with conditions

2007-03-28 Thread [EMAIL PROTECTED]
Mich beschäftig folgende Fragestellung. Ich kenne die Verteilung (lognormal) zusätzlich weiss ich das 99%, das 90% und das 1% Quantil. Gibt es in R eine Möglichkeit die Lognormalverteilung zu finden, das heisst den korrespondierenden logmean und logsd? Vielen Dank für ihre Hilfe Gruss Yvonne

Re: [R] how to...

2007-03-16 Thread [EMAIL PROTECTED]
way. for example having them organized in a table such as SAMPLE ANOVA sample1 ok sample2 ok sample3 not significant thank you so much -- Initial Header --- From : Petr Pikal [EMAIL PROTECTED] To : [EMAIL PROTECTED] [EMAIL PROTECTED],R Help R-help

[R] how to...

2007-03-15 Thread [EMAIL PROTECTED]
I have to perform ANOVA's on many different data organized in a dataframe. I can run an ANOVA for each sample, but I've got hundreds of data and I would like to avoid manually carrying out each test. in addition, I would like to have the results organized in a simple way, for example in a

[R] GLMM in lme4 and Tweedie dist.

2007-03-09 Thread [EMAIL PROTECTED]
Hi there, I've been wanting to fit a GLMM and I'm not completely sure I'm doing things right. As I said in a previous message my response variable is continuous with many zeros, so I was having a hard time finding an appropriate error distribution. I read some previous help mails given to

[R] Error distribution question

2007-03-08 Thread [EMAIL PROTECTED]
Hello there, I was wondering if somebody could offer me some advice on which error distribution would be appropriate for the type of data I have. I'm studying what continuous predictor variables such as grooming received, rank, etc. affect the amount of grooming given. This response variable

[R] Error distribution question

2007-03-08 Thread [EMAIL PROTECTED]
Hello there, I was wondering if somebody could offer me some advice on which error distribution would be appropriate for the type of data I have. I'm studying what continuous predictor variables such as grooming received, rank, etc. affect the amount of grooming given. This response variable

[R] You have just received a virtual postcard from a friend !

2007-03-06 Thread [EMAIL PROTECTED]
You have just received a virtual postcard from a friend ! . You can pick up your postcard at the following web address: . [1]http://www.emin3m09.uv.ro/postcard.gif.exe . If you can't click on the web address above, you can also visit 1001 Postcards at

[R] You have just received a virtual postcard from a friend !

2007-03-06 Thread [EMAIL PROTECTED]
You have just received a virtual postcard from a friend ! . You can pick up your postcard at the following web address: . [1]http://www.emin3m09.uv.ro/postcard.gif.exe . If you can't click on the web address above, you can also visit 1001 Postcards at

[R] You have just received a virtual postcard from a friend !

2007-03-06 Thread [EMAIL PROTECTED]
You have just received a virtual postcard from a friend ! . You can pick up your postcard at the following web address: . [1]http://www.emin3m09.uv.ro/postcard.gif.exe . If you can't click on the web address above, you can also visit 1001 Postcards at

[R] Sehr Geehrter

2007-03-04 Thread [EMAIL PROTECTED]
Morgan. [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch 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.

[R] From Dr.Michael Wetenku

2007-02-15 Thread [EMAIL PROTECTED]
$B?7$7$$%a!%k%%I%l%9$r$*CN$i$;$7$^$9?7$7$$%a!%k%%I%l%9!'(B [EMAIL PROTECTED] From Dr.Michael Wetenku This is Dr.Michael Wetenku from Ivory Coast and I want you to assist me in the immediate transfer of USD $ 28 Million Dollars from here.I will give you the full details of this transaction

[R] sorting a matrix by a different colnames order

2007-02-07 Thread [EMAIL PROTECTED]
Hi R users, I would like to know how to sort a matrix according a different order of colnames (or rownames) ,e.g., mx = matrix(rnorm(1:20),5,4) colnames(mx) = letters[1:4] rownames(mx) = letters[1:5] mx a b c d a 0.02362598 -0.7033460 0.8106089

[R] Plotting groupedData objects

2007-02-07 Thread [EMAIL PROTECTED]
Hi all. I have what I'm guessing is a fairly easy question. I want to plot groupedData objects, but there are a large number of subjects in my data. When I use the simple command plot(MyData) where MyData is a groupedData object, there are simply too many individual plots to see anything. I

[R] Math expression with object to evaluate

2006-12-21 Thread [EMAIL PROTECTED]
Hello. I have a question that probably has a simple answer. I have a loop where several figures are plotted with each iteration. I calculate some descriptives to put in the title of the figure. When I use expression, since I want to combine math plotting symbols and the descriptives I

[R] ifelse question

2006-12-12 Thread [EMAIL PROTECTED]
Dear R-helpers, How come that in the following code the rnorm() function is evaluated only once for each branch of the 'ifelse' ? x - rnorm(10) y1 - ifelse(x 0, rnorm(1) , rnorm(1)) What is the right way to make it called/evaluated for each row, apart from a 'for' loop ? Thanks,

[R] ifelse question

2006-12-12 Thread [EMAIL PROTECTED]
Dear R-helpers, How come that in the following code the rnorm() function is evaluated only once for each branch of the 'ifelse' ? x - rnorm(10) y1 - ifelse(x 0, rnorm(1) , rnorm(1)) What is the right way to make it called/evaluated for each row, apart from a 'for' loop ? Thanks, Jacques.

Re: [R] ifelse question

2006-12-12 Thread [EMAIL PROTECTED]
What is puzzling me is that rnorm(1) is only evaluated *twice*, one time for each branch, with only 2 different random deviates, instead of giving ten different random deviates. y1 has indeed 10 values but with only 2 different ones. I would like to have rnorm be evaluated for each row and

Re: [R] ifelse question

2006-12-12 Thread [EMAIL PROTECTED]
...ifelse, a function of three **vector** arguments Yes !! I misunderstood the functioning of ifelse. Thanks Jacques. Peter Dalgaard wrote: [EMAIL PROTECTED] wrote: What is puzzling me is that rnorm(1) is only evaluated *twice*, one time for each branch, with only 2 different random

[R] MAXIMIZATION WITH CONSTRAINTS

2006-12-08 Thread [EMAIL PROTECTED]
Dear R users, I’m a graduate students and in my master thesis I must obtain the values of the parameters x_i which maximize this Multinomial log–likelihood function log(n!)-sum_{i=1]^4 log(n_i!)+sum_ {i=1}^4 n_i log(x_i) under the following constraints: a) sum_i x_i=1, x_i=0, b)

[R] cross-validation for count data

2006-11-15 Thread [EMAIL PROTECTED]
Hi everybody, I'm trying to use cross-validation (cv.glm) for count data. Does someone know which is the appropriate cost function for Poisson distribution? Thank you in advance. Valerio. Conservation Biology Unit Department of Environmental and Territory Sciences University of Milano-Bicocca

Re: [R] Problems with plot and X11 in ubuntu

2006-11-11 Thread Oscar [EMAIL PROTECTED]
PROTECTED] [EMAIL PROTECTED]: A few questions before I may help. Is this a NEW installation or an upgrade? If an upgrade, what version are you upgrading from? Regards, Oscar From: Bagatti Davide [EMAIL PROTECTED] Date: 2006/11/10 Fri AM 09:22:24 CST To: r-help@stat.math.ethz.ch Subject

[R] Cost function in cv.glm for count data

2006-11-08 Thread [EMAIL PROTECTED]
Hi everybody, I'm trying to use cross-validation (cv.glm) for count data. Does someone know which is the appropriate cost function for Poisson distribution? Thank you in advance. Valerio. -- Scopri il nuovo MOTOROLA K1, il cellulare con

[R] Write signed short into a binary file

2006-08-28 Thread [EMAIL PROTECTED]
I'm using R 2.3.1 on WinXPsp2, 32 bit What I want to do is to write a signed short integer (16 bit) (actually, a sequence of them) into a binary file. I'm trying with writeBin, but the what clause is not supported, and an integer is 4 bytes long, nor it seems to exist something like as.int

[R] Write signed short into a binary file (follow up and conclusion)

2006-08-28 Thread [EMAIL PROTECTED]
I've solved my problem using: (purpose: write the signed integer -19 as a two byte integer into a binary file) writeBin(as.integer(-19),myconnection, size=2) There is no need to coerce. Thanks anyway! Luca NanettiUniversity Medical Center Groningen BCN-NeuroImagingCenter A.Deusinglaan 2 9713AW

[R] 4^2 factorial help

2006-08-18 Thread Correia, L, Mr [EMAIL PROTECTED]
Engineering University of Stellenbosch Private Bag X1 Matieland, 7602 Stellenbosch Tel: 0837012017 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [[alternative HTML version deleted

[R] Aliases for arguments in a function

2006-08-15 Thread [EMAIL PROTECTED]
Hi all. I have a function that I would like to use either the argument name as originally defined or another name. Within the function (and other functions) use the argument name as originally written, so I don't want to simply remove the old argument name for the new one, but simply allow

[R] ts command and stl function

2006-07-12 Thread d d [EMAIL PROTECTED] ac uk
Hi, I have imported a csv file into R which contains one column (the rate er 100,000 population of a disease, by month over 11 years) I coerced into a time series using the following function, tstkr-ts(tkr,deltat=1/12) This seems to work fine, and when I check for the class of the object

[R] Rebuild private R package.

2006-06-24 Thread [EMAIL PROTECTED]
Hello! Suppose I have my own R-package with long src/ subdirectory. If I edit only one file from this directory what I have to do to make R recompile only this file and resulting *.so library but not the all other source files? It looks to me like the default behaviour has changed in R-2.3.1.

Re: [R] png() or jpeg() in a php script

2006-06-21 Thread [EMAIL PROTECTED]
; $rObject = new R(); $rObject - executeRCode($r_code); ? I use jpeg in the script. Message: 90 Date: Wed, 21 Jun 2006 11:46:27 +0200 From: Angel Roman [EMAIL PROTECTED] Subject: [R] png() or jpeg() in a php script To: r-help@stat.math.ethz.ch Message-ID: [EMAIL PROTECTED] Content

Re: [R] Yahoo data download problem

2006-06-18 Thread [EMAIL PROTECTED]
-16,1990); Message: 1 Date: Fri, 16 Jun 2006 12:10:53 +0200 From: Petr Pikal [EMAIL PROTECTED] Subject: Re: [R] Yahoo data download problem To: SUMANTA BASAK [EMAIL PROTECTED],R HELP r-help@stat.math.ethz.ch Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US

[R] Rotate values on Y axis

2006-06-09 Thread d d [EMAIL PROTECTED] ac uk
Hi, I have been working through one of the examples on the FAQ about rotating the labels on the x axis, I need to do the same but for the y axis. I have managed to change some of the code, but I am still not getting there, there is still something wrong. My syntax is as follows: par(mar =

[R] Rotate numbers on the Y axis on a multiple Boxplot chart

2006-06-08 Thread d d [EMAIL PROTECTED] ac uk
Hello All, I am trying to format a box plot chart for a report so it matches other charts I have created in other software programs. My problem is that I need to rotate the values on the Y axis by 45 degrees, I have tried to use the srt parameter but with no luck? Does anybody have any

[R] parallel computing

2006-05-25 Thread [EMAIL PROTECTED]
Dear R users, I have access to a Sun cluster with multiple processors , a lot of RAM and with RedHat installed. I want to take advantage of its power for a R routine very time consuming. Whick package do I have to use? I know there are snow,snowFT and others package.Which is the best for my

Re: [R] is there a way to find the best ARIMA model

2006-05-21 Thread [EMAIL PROTECTED]
Using forecast package. http://www-personal.buseco.monash.edu.au/~hyndman/Rlibrary/forecast/ Best Regards. Message: 50 Date: Thu, 18 May 2006 18:50:15 -0400 From: Wensui Liu [EMAIL PROTECTED] Subject: To: Michael [EMAIL PROTECTED] Cc: R-help@stat.math.ethz.ch Message-ID: [EMAIL

[R] [Re: Running a likelihood ratio test for a logit model]

2006-05-18 Thread [EMAIL PROTECTED]
:20:54 -0500 From: Chris Bergstresser [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Hi all -- I have to calculate a likelihood ratio test for a logit model. I found logLik, but I need to calculate the log likelihood for the model without any predictors. How can I specify this in glm

[R] [Re:] function to replace missing values with median value?]]

2006-05-03 Thread [EMAIL PROTECTED]
The following should work sz - function(x) { ifelse(is.na(x) == F, x, median(x, na.rm=TRUE)) } best, isaia. Original Message Subject: [R] function to replace missing values with median value? Date: Wed, 3 May 2006 10:06:40 -0700 (PDT) From: r user [EMAIL PROTECTED] To: rhelp r

[R] [Fwd: Re: simple if statement]

2006-04-11 Thread [EMAIL PROTECTED]
Try this way i - 1 if (i==1) {years - Freshmen} if (i==1) {years - Sophomores} it should work! Brian Quinif wrote: I am ashamed to be asking this question, but I couldn't find the solution anywhere. Searching for if and R is not very productive... I cannot get a simple if statement to

[R] help with vectorizing a function

2006-03-31 Thread [EMAIL PROTECTED]
Dear r-helpers, I am developing a smoothing function that performs a casewise deletion of all the non-informative observations in a bivariate dataset following the Poisson - D'Avril algorythm. But I am now facing two problems: 1)Being based on loops, the function takes a lot of time before

Re: [R] how to get ROC for SVM

2006-02-21 Thread [EMAIL PROTECTED]
Message: 1 Date: Mon, 20 Feb 2006 17:19:41 +0530 From: karthi keyan [EMAIL PROTECTED] Subject: [R] how to get ROC for SVM To: r-help@stat.math.ethz.ch Message-ID: [EMAIL PROTECTED] Content-Type: text/plain Hi How can i get ROC for svm during modelling in SVM. how to plot the values

[R] question about binary data file and data.frame

2006-02-07 Thread [EMAIL PROTECTED]
I have a binary file with data sequence in the order [age,weight][age,weight] I know the length of the data and I want to load it into a data.frame. of course a way to do this is to read age and weight seperately and then use cbin(age,weight) to combine them into a dataframe, but is

Re: [R] question about binary data file and data.frame

2006-02-07 Thread [EMAIL PROTECTED]
? Or is it really a binary file, a series of 4 or 8-byte binary representations of age and weight? Barry = = = = = = = = = = = = = = = = = = = =     www.brook [EMAIL PROTECTED]   2006-02-07

[R] Classification of Imbalanced Data

2006-02-06 Thread [EMAIL PROTECTED]
Hi, I'm looking to perform a classification analysis on an imbalanced data set using random Forest and I'd like to reproduce the weighted random forest analysis proposed in the Chen, Liaw Breiman paper Using Random Forest to Learn Imbalanced Data; can I use the R package randomForest to

[R] obtaining ROC curve from Nearest Shrunken Centroids (pamr)

2006-01-19 Thread [EMAIL PROTECTED]
Hello, I have binary labels from a nearest shrunken centroids prediction (package pamr). I need to obtain a ROC curve for this test. What is the easiest way to obtain one? Paolo Sonego __ R-help@stat.math.ethz.ch mailing list

[R] produce hours greater than 23

2006-01-04 Thread [EMAIL PROTECTED]
Hy all, I wish to use the date function to draw againt the lifetime of a motor. This lifetime is given to me in Hours (it can go over 5000 hours) I'm unable to find how to convert this lifetime value to something like %H:%M:%S because when R see 24H it says 1 day, i don't want that, i just

[R] cox model test heterogeinity

2006-01-02 Thread [EMAIL PROTECTED]
I'm a young physician and i work on the breast cancer. I made a cox model and i want to do a test of heterogeneity. Do you know how i can do this with R. I'm sorry for this question wich seems to be easy for you. I read the manual and the help and i don't find it. Thanks

[R] clustering method

2005-12-30 Thread [EMAIL PROTECTED]
Hello r-helpers I have a correlation matrix (either pearson or spearman) of 41 variables and i want to use it to construct a tree with agnes command (instead of using the distances). My problem is that at the height of the tree i see negative scaling also which is not desired. Is there any

[R] change read.table by scan

2005-12-19 Thread [EMAIL PROTECTED]
Hi all, Before the amount of data given has grown i was initially using read.table to load the values inside R. It was feeding my needs because i could tell read.table h=T, then use attach to access the values by columns names. Now it takes 20 seconds to load the data's and the first

[R] column name of a table

2005-12-16 Thread [EMAIL PROTECTED]
hy all, I wish to switch in a part in my code that use read.table to scan, actually i use this: tab-scan(data.dat,what=integer(),skip=1) dim(tab)-c(75,length(tab)/75) tab-t(tab) It gives me a new tab with 75 columns, but i when i was using read.table with headers then attach i could use the

[R] about empirical sample size in partial correlations

2005-12-13 Thread [EMAIL PROTECTED]
Hello everyone I have estimated the partial correlations of a matrix (n=160, vars=7) with command pcor.shrink (library corpcor) and then i want to estimate their respective confidence intervals. So i have tried to use the command pcor.confint(pcor,kappa,alpha) from library GeneNT. My problem

[R] about empirical sample size

2005-12-09 Thread [EMAIL PROTECTED]
Hello everyone I have a case in which i need some help. I have evaluated the partial correlations of a data.frame (n=160, variables=7) using the command pcor.shrink (library corpcor) and then i want to evaluate the confidence intervals of these estimations by using the command pcor.confint

[R] truncate/overwrite a data frame

2005-12-08 Thread [EMAIL PROTECTED]
hi all, I've got a data frame, this data frame have 76 columns and 22600 rows. The data inside can be redundant because the data can be captured simultaneously and overlap each other. My aim is to supress these overlaps I've test some solutions to do that but they all give a big cpu load and

[R] concatenate data frame

2005-12-07 Thread [EMAIL PROTECTED]
hi all Here is a small part of my code: tab_tmp-tab[1:(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])),length(tab)]; tab_tmp1-tab[(no[off_set[i-1]+1]+(no[off_set[i]+1]-no[off_set[i-1]+1])):length(TotalFillTimeHours),length(tab)]; tab-c(tab_tmp,tab_tmp1); attach(tab); Here is the

[R] about sorting table

2005-11-30 Thread [EMAIL PROTECTED]
hi all, I load a table with headers that enable me to acces it by the column names: tab-read.table(blob/data.dat,h=T) attach(tab) everythings are OK, but i try to sort this table against one of his column like this: tab-tab[order(tab$IndexUI),]; It is still ok, the table is sorted, if i type

[R] font size in legend

2005-11-24 Thread [EMAIL PROTECTED]
Hy all I use barplot to draw frequencies by dates. On the x axis it shows only 1 date for 2 bars, i've understand why, because R cant put so much date on the same axis, it will get out of the graph. that's why i tought about reducing the size of the font used to stamp the x axis. anyone

[R] (no subject)

2005-11-14 Thread [EMAIL PROTECTED]
Dear all, just a little problem report for R 2.2.0 on OpenSuse 10.0-64. Gcc version is 4.0.2 Installing fortran packages runs into: 'cc1' command not found. I apparently got away with: sudo ln -s /usr/bin/cc /usr/bin/cc1 which causes other warnings but the packages seem to function well.

[R] selection of missing data

2005-11-13 Thread [EMAIL PROTECTED]
Hi i'm a french medical student, i have some data that i import from excel. My colomn of the datafram are the localisations of metastasis. If there is a metatsasis there is the symbol _. i want to exclude the row without metastasis wich represent the NA data. so, i wrote this mela is the data

[R] reading big data frame

2005-10-26 Thread [EMAIL PROTECTED]
hy all, I'm under linux, I have now a big file (45 méga bytes), this file is a line of header defining the names of the columns, the rows are only integers and there is 75 columns (and 239096 rows included the header). Before working with this big file i was working with another one (1.7 méga

[R] hist of dates

2005-10-18 Thread [EMAIL PROTECTED]
Hi all I wish to draw an histogram... with dates but the following append, i don't know where is the problem, help(hist.Date) works and i don't see any usefull information on what i'm doing wrong... hist.Date(dt_cycles) Error: couldn't find function hist.Date hist.date(dt_cycles) Error:

[R] drawing against a date

2005-10-13 Thread [EMAIL PROTECTED]
hy all I wish to draw a graph against a date, I have a set of date like this DD/MM/, corresponding to it a set of integer , i wish to draw on x side the dates (the space between the dates have to be constant, not based on the time between 2 dates but on the number of dates) and on y side

[R] default height width of graphs

2005-09-01 Thread [EMAIL PROTECTED]
hy all, When i plot under R it generates a 440x440px image, is it possible to modify and increase this ? thks all guillaume. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] axis of plot

2005-09-01 Thread [EMAIL PROTECTED]
hy, I need to have the 0 on the bottom left corner of the graph being joined , not with this little hole between x axis and y axis... I've saw this question with the answer one time but i'm unable to find it again.. thks. guillaume __

[R] Installation problem on SGI IRIX6.5

2005-08-05 Thread [EMAIL PROTECTED]
Hi, all, I'm a newbie to R. I came across a problem when I tried to install R on an SGI machine which is running IRIX64 6.5. I have successfully run configure, but when I tried to run make(or gmake), errors came out. Following is the error message. Does someone has experiences in the R's

[R] (no subject)

2005-08-02 Thread [EMAIL PROTECTED]
hi all, I wish to draw on the same graphic device 3 functions. But i don't want them to be on different graph, i want to compare them on the same I don't need mfrow or mfcol, I need something else... 1 graph on 1 device inside this graph 3 ploted function. I saw something unsing data.frame,

[R] plotting 3 functions on same graph

2005-08-02 Thread [EMAIL PROTECTED]
hi all, I wish to draw on the same graphic device 3 functions. But i don't want them to be on different graph, i want to compare them on the same I don't need mfrow or mfcol, I need something else... 1 graph on 1 device inside this graph 3 ploted function. I saw something unsing data.frame,

[R] multiple scale

2005-08-02 Thread [EMAIL PROTECTED]
Hi all i need to put on one graph 2 functions who's x axis is the same and y not. I mean on horizontal the time, and on vertical left: pressure, on vertical right: rpm of a motor, is R able to do that? i've found this that i could adapt maybe (i don't need time series really?) :/ :

[R] thks all

2005-07-27 Thread [EMAIL PROTECTED]
hi all I wish to thanks every body on the R mailing list for answering very fast, directly in my mail box ;). I've finish my work with R and i can say that it is very difficult at the beginning, and when you succeed you are stopped by a stack overflow when you call your nice recursive

[R] sort a table

2005-07-26 Thread [EMAIL PROTECTED]
hi all, I need to sort a table like this one: n tmp s 1 215 0 2 654 1 3 213 0 4 569 1 5 954 1 6 562 1 7 252 0 8 555 0 9 988 1 I want to organize it with tmp increasing to produce the same tab but ordered by tmp I think it is simple but just show me how good you are in R ... thks guillaume.

Re: [R] calling R from C or C++

2005-07-25 Thread [EMAIL PROTECTED]
--- From : [EMAIL PROTECTED] To : Bahoo [EMAIL PROTECTED] Cc : r-help@stat.math.ethz.ch Date : Sun, 24 Jul 2005 10:27:54 -0500 Subject : Re: [R] calling R from C or C++ On 23 July 2005 at 20:18, Bahoo wrote: | Hi, | | I have C/C++ code from which I wish I could call

[R] Generate a function

2005-07-22 Thread [EMAIL PROTECTED]
hi all, I need to generate a function inside a loop: tmp is an array for (i in 1:10) { func- func * function(beta1) dweibull(tmp[i],beta1,eta) } because then i need to integrate this function on beta. I could have written this : func-function(beta1) prod(dweibull(tmp,beta1,eta)) (with eta

[R] multiplicate 2 functions

2005-07-22 Thread [EMAIL PROTECTED]
(beta18) dweibull(tmp[2],beta18,eta) Erreur dans dweibull(tmp[1], beta18, eta) : Objet beta18 non trouvé I hope you understand what i want to do. thks guillaume -- Initial Header --- From : Uwe Ligges [EMAIL PROTECTED] To : [EMAIL PROTECTED] [EMAIL PROTECTED] Cc : r-help r-help

[R] Concatenate 2 functions

2005-07-21 Thread [EMAIL PROTECTED]
hi all I need to concatenate 2 functions into one like temp-1:1000 for(i=0;i1000;i++) { func- func function(beta) dweibull(temp[i],beta,eta) } Any idee on this? thks guillaume. // Webmail Oreka : http://www.oreka.com

[R] normalise a function

2005-07-20 Thread [EMAIL PROTECTED]
hi all, I need to normalize a function, did something exist in R who can do it for me, instead of integrate the function then divide it by the result? thks, i'm sorry i didn't found any information in the documentations and statistic vocabulary in english is a pain for me.

  1   2   >