Re: [R] inner loop problem!?

2007-04-24 Thread Christian Schulz
Hi, i understand my problem , because i overwrite my result's from previous loop's again and agian, really stupid :-] regards, christian > Hi, > > i have 656 attributes ind INTERVALL_VAR & 119 in GROUP > and this morning i'm little confused why the inner loop hang if it > arrive 656th column.

[R] inner loop problem!?

2007-04-24 Thread Christian Schulz
Hi, i have 656 attributes ind INTERVALL_VAR & 119 in GROUP and this morning i'm little confused why the inner loop hang if it arrive 656th column. My Task is a t-test and correlation with all columns in INTERVALL_VAR for all attributes in GROUP. many thanks & regards, christian for( k in

Re: [R] Cohen's Kappa

2007-03-23 Thread Christian Schulz
25686 > > >> (.6862368-.6225686)/(1-.6225686) >> > [1] 0.1686881 > > Scot > > > On Thu, 22 Mar 2007, Christian Schulz wrote: > > >> Hi, >> >> im little bit confused about Cohen's Kappa and i should be look into the >&

[R] Cohen's Kappa

2007-03-22 Thread Christian Schulz
Hi, im little bit confused about Cohen's Kappa and i should be look into the Kappa function code. Is the easy formula really wrong? kappa=agreement-chance/(1-chance) many thanks christian ### true-negativ:7445 false-po

Re: [R] Help neural network in R

2007-02-12 Thread Christian Schulz
...maybe library(neural) with examples should a good staring point. regards, christian > I am interested in Neural network models in R. Is > there any reference material/tutorial which i can use. > Regards, > > > > ___

Re: [R] Questions about generating samples in R

2006-11-26 Thread Christian Schulz
split <- sample(2,nrow(dataframe),replace=T,prob=c(0.04,0.96)) dataframe[split==1,] # 200 dataframe[split==2,] # 4800 regards, christian > ?sample should tell you what you need to know. > > On 26/11/06, Alexander Geisler <[EMAIL PROTECTED]> wrote: > >> Hello! >> >> I have a data set with 8

[R] dynamic aggregation of many variables

2006-11-15 Thread Christian Schulz
Hi, i have many variables for in example 4weeks and want to do aggregations, like mean standard , deviation etc.. With mean it works but how i can calculate the standard deviation for the 4weeks and for every ID. many thanks & regards, christian week1 <- grep("(_PRO_001)",names(dmx3),perl=T)

Re: [R] How can you buy R?

2006-05-18 Thread christian schulz
Hello, ihmo you could buy quantian and find several third-party resellers on dirk's page stated below. http://dirk.eddelbuettel.com/quantian.html regards, christian > Hi all, > > This may seem like a dumb question, but I work for an entity that is soon > converting to XP across the board, and

Re: [R] how to clear screen in R-console?

2006-02-16 Thread Christian Schulz
ctrl - e & l >HI all, > >How to clear the screen in R-console? > >Thanks a [EMAIL PROTECTED] > > [[alternative HTML version deleted]] > >__ >R-help@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the pos

Re: [R] Clustering for social/complex networks

2006-02-03 Thread Christian Schulz
try: cmeans "Fuzzy C-Means Clustering" in library(e1071) regards, christian >Hi group, > >Here is another clustering question. Is there >anything available in R that I can cluster groups with >overlaps? It looks like a Venn Diagram with two or >more circles overlapping one another. > >I real

Re: [R] What's wrong with JGR?

2006-01-26 Thread Christian Schulz
Which R version and which os is yours? For me it works fine. Lade nötiges Paket: grDevices using Java Runtime version 1.5.0 using JAVA_HOME = C:\develope\jre Lade nötiges Paket: rJava Lade nötiges Paket: methods using Java Runtime version 1.5.0 using JAVA_HOME = C:\develope\jre > > R.Version()

Re: [R] R and Eclipse?

2006-01-24 Thread Christian Schulz
Peter Dalgaard schrieb: >Christian Schulz <[EMAIL PROTECTED]> writes: > > > >>http://www.walware.de/;jsessionid=F31C76BA1E592CDA2C82456CFA37C4FD?mainURL=/rplugin.zip >> >> > >You mean > >http://www.walware.de/goto/statet > >However,

Re: [R] R and Eclipse?

2006-01-24 Thread Christian Schulz
http://www.walware.de/;jsessionid=F31C76BA1E592CDA2C82456CFA37C4FD?mainURL=/rplugin.zip regards, christian >I know that (for windows users) there exists an extension for WinEdt for R. >Is there an editor plugin for eclipse as well. Eclipse is free, >cross-plattform, well known, ... >I found nothi

Re: [R] new comer's question

2006-01-17 Thread Christian Schulz
>what is wrong? > > > > Your data is ihmo not correct imported myArray <- read.table("c:/mydata.csv",sep=",",na.strings="") ...and it seems you have using quotes in your csv file so you should play with the additional parameter quotes in read.table. Type ?read.table Then check your data

Re: [R] reference

2005-12-27 Thread Christian Schulz
http://www.rpad.org/Rpad/R-refcard.pdf >I have recently used R in a statistical analysis and I need to use a >reference... >If you would be kind enough to help me I would be grateful! > >P.S.Georgoulia > >__ >R-help@stat.math.ethz.ch mailing list >https:

Re: [R] RMySQL problems

2005-10-18 Thread Christian Schulz
Hi, i have recently same problems, but when i add a new user without password it works, but i could not recognize why the user with password didn't work. After a new mysql (Win-XP mysqll 5.0.13 rc ) installation it works normal. regards, christian DBI version 0.1-9 RMySQL 0.5-5 _

Re: [R] sqlFetch on MySQL-DB

2005-10-09 Thread christian schulz
Hi, there is a problem with the type of attributes - is it varchar!? IMHO you should play a bit with different type's in mysql and the consequence in R. I recognize "similar" problems with RMySQL, if you have variables with type decimal in mysql you get numerics in chr. But it's possible to c

[R] conjoint optim

2005-08-11 Thread christian schulz
Hi, have anybody a starting point or experince how i could optimize the results from a conjoint-ananlysis. I have the idea to optimize this with 2 function , one for the parth-worth utilities which have to maximize and a secondconcurrent for the cost's of the parth-worth utilities ("product-

[R] factor2real strange!?

2005-06-07 Thread christian schulz
Hi, i get factors from oracle instead real or numeric, but have problems to convert. Where is my mistake? I can't rember have this difficulties like this? many thanks, christian > vsub <- subset(dm,select=c(DEBITS_POST3)) > (vsub$DEBITS_POST3[1:4]) [1] 9,93 0 23,82 32,72 7936 Levels: 0 0,5

Re: [R] Conjoint in R

2005-06-07 Thread christian schulz
Hi, try package "MNP" for a starting point - which could be used for choice-based-conjoint! And here a paper which show you that a normal Conjoint design is nothing others than a regression analysis, which could ready easy used with little bit programming in R. www.sawtoothsoftware.com/dow

Re: [R] many chr2factors ?

2005-06-01 Thread christian schulz
-- Christoph Buser <[EMAIL PROTECTED]> Seminar fuer Statistik, LEO C13 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-44-632-4673 fax: 632-1228 http://stat.ethz.ch/~buser/

[R] many chr2factors ?

2005-06-01 Thread christian schulz
Hi, i would like transfrom characters from a data.frame to factors automatic. > tofac <- function(df){ + i=0 + repeat{ + i <- i+1 + if(!is.character(df[,i])) + next + df[,i] <- as.factor(df[,i]) + print(i) + if(i == length(df)) + break } + } > > tofac(abrdat) [1] 7 [1] 8 [1] 9 [1] 11 [1] 13 [1

[R] Avoiding Sweave formula cut's?

2005-05-04 Thread christian schulz
Hi, anybody know a possibilities how i could avoid less nicely cut's in function calls with sweave like: randomForest(x = RELSHIP ~ ., data = R_RELSHIP[splitR_RELSHIP == 1, ], importance = T, n(*here is the cut in the pdf*) tree = 1000, na.action = na.omit) Until now i add expost linebr

Re: [R] RMySQL query: why result takes so much memory in R ?

2005-05-02 Thread christian schulz
Hi, IMHO you need only when your columns are numeric X rows /100/100/8 MB. >>(1200*3)/100/100/8 [1] 450 But one of your columns is group char. I'm suffering in the past in lot of things with massive data and R and recognize doing how many as possible in the database, or you have to upgrade

Re: [R] learning networks with a large number of variables and pre-set parents.

2005-03-25 Thread Christian Schulz
Hi, you have 1 variables and how many cases? In my experience you need a lot of memory working with this kind/size of data and deal! >> dim(pk.df) [1] 7321 24 >> pk <- network(pk.df) >> pk.prior <- jointprior(pk) Error in rep.default(data, length.out = vl) : cannot allocate vector of length 5

Re: [R] R & bash script

2005-02-18 Thread Christian Schulz
document". See http://www.tldp.org/LDP/abs/html/here-docs.html Here is an excerpt of a bash script showing its use -- notice that several bash variables are referenced within it: #!/bin/bash . . R --slave --vanilla --quiet --no-save < Cheers, Pierre Christian Schulz wrote:

[R] R & bash script

2005-02-18 Thread Christian Schulz
Hi how is it possible to use more than one command when i'm didn't want use R CMD BATCH for specific reason? $ echo "(x<-1:10)" | R --vanilla works $ echo "(x<-1:10 ;y<-20:30 ;lm(y ~ x))" | R --vanilla works not. Is it further possible using bash variables like $i from a loop in the bash echo cal

Re: [R] R or weka

2005-02-08 Thread Christian Schulz
Hi, it's dependend of your task and the amount of data. R-project have a lot more possibilities manipulate the data and many different plot possibilities. Weka have the nice possibilty use the experimenter which could test several algorithms on different dataset's for comparison, further you fi

Re: [R] gsub pattern?

2005-01-21 Thread Christian Schulz
many thanks ..the different styles from linux to r-project a little confusing for me :-( christian Peter Dalgaard wrote: Christian Schulz <[EMAIL PROTECTED]> writes: Hi, search in web for regular expressions i get the information that the line below replace all AUTO string's li

[R] gsub pattern?

2005-01-21 Thread Christian Schulz
Hi, search in web for regular expressions i get the information that the line below replace all AUTO string's like AUTOBAHN ,AUTORENNEN with 1 but nothing happend. Using the [] in the pattern it works like i'm expected, but i didn't want single character replacment. Where is my mistake? bcode <-

Re: [R] Question about time series

2005-01-17 Thread Christian Schulz
Hi >>TODAY <- as.POSIXlt('2004-01-17') >>LYTODAY <- as.POSIXlt('2003-01-17') >>DAYS <- TODAY-LYTODAY >>DAYS Time difference of 365 days >>DAYS[[1]] [1] 365 perhaps it helps, Christian Dennis Fisher wrote: I have data in the following format: > DATE [1] "01/13/2004" In order to find the d

Re: [R] spreadsheet addiction

2005-01-14 Thread Christian Schulz
Henrik Andersson wrote: I am moving to using R more and more as a computational platform and I use Microsoft Excel at the moment in exactly the way you describe in WRITING ASCII FILES as a staging area for data, to gather data and make simple calculations. I've have experienced problems with savi

[R] RMySQL_0.5.5 / SUSE9.2

2004-12-21 Thread christian schulz
Hi, where is my mistake? i have done follow comand-lines. export PKG_LIBS="-L/usr/lib/myslq" export PKG_CPPFLAGS="-I/usr/include/mysql" R CMD INSTALL RMySQL_0.5-5.tar.gz i'm using R-2.0.1 , suse 9.2, 5.0.0-alpha-standard , and after a succefuel compilaition i get when im type in R library(RM

Re: [R] "sequence of factor settings"?

2004-12-10 Thread Christian Schulz
ences by their frequencies. Hope this helps! - Phil Spector Statistical Computing Facility Department of Statistics UC Berkeley [EMAIL PROTECTED] On Thu, 9 Dec 2004,

[R] "sequence of factor settings"?

2004-12-09 Thread Christian Schulz
Hi, exist in any package a function which "work with sequences". Easy example 10 factors with 2 levels, are if i'm correct theoretical 2^10 "sequences" possible. But i have more than 2 levels and perhaps more than 10 factors and interested for the top10 "sequence's" with higehest freqs and wish

Re: [R] Text Mining with R

2004-12-06 Thread Christian Schulz
hi, i'm interested in text-mining, too and so make a trial. In Linux (suse9.2) it works fine, but in windows i can't install the source despite off installed perl, tools ,htmlhelp etc.. regards, christian Jean-Pierre Muller wrote: Jose, Le 3 déc. 04, à 21:23, Jose Quesada a écrit : Tobias, I just

Re: [R] How about a mascot for R?

2004-12-04 Thread Christian Schulz
hi, some weka guys use "kea" (..with the same intenion to the bird in nz!) for a automatic keyphrase extraction tool (java). http://www.nzdl.org/Kea/ regards, christian Martin Maechler wrote: "DScottNZ" == David Scott <[EMAIL PROTECTED]> on Fri, 3 Dec 2004 15:04:52 +1300 (NZDT) writes:

Re: [R] Text Mining with R

2004-12-03 Thread Christian Schulz
Hi, i didn't know anything and imho R is not the perfect basis for this , which i'm recognize when want doing a lot of text data manipulation. But with the open-sources software weka there exist some possibility's and subprojects related to text-mining. http://www.cs.waikato.ac.nz/ml/weka/ regards,

[R] conditional replacement - readLines

2004-11-26 Thread Christian Schulz
Hi, i have list with 2575 cgi files which i have read with readLines - all Lines have the type "chr". Now i want replace the 2. line with a condition in 4. line and write the files back to dir. How i could avoid the incompatible problem, or is it better doing something with awk!? for (i in 1

Re: [R] support vector machine

2004-11-25 Thread Christian Schulz
http://www.maths.lth.se/help/R/.R/library/e1071/doc/svmdoc.pdf regards, christian stephenc wrote: Hi Everyone Thanks to those who responded last time. I am still having problems. I really want to find one of those tutorials on how to use svm() so I can then get going using it myself. Issues are wh

Re: [R] Thrashing?

2004-11-14 Thread Christian Schulz
IMHO it's dependend on your data size and the functions you use. I'm getting same behaviour (suse9) when i use mysqlWriteTable and reshape with large datasets and a upgrade from 512MB to 1GB works much more better - but now i dream from 2GB-4GB. christian Rob Steele wrote: Does R do its own swa

Re: [R] "conditional duplicates"?

2004-11-10 Thread Christian Schulz
School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/396887 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm - Original Message - From: "Christian Schu

[R] "conditional duplicates"?

2004-11-10 Thread Christian Schulz
Hi, i would like check a repeated measurement dataset, whether cases (which (id) could be more than one time included and not all same times included.) have more than one times the same SMONTH!? #This pseudo code didn't work with a for loop, because the [i+1] isn't known. How i could refer to [i

[R] constraints in optim?

2004-10-02 Thread Christian Schulz
> optim(c(1,1),LL,method="SANN",control=list(fnscale=-1),trans=trans,times=times) $par [1] 17.422635 -1.606859 How could i constraint that the parameters should be both positive in my maximizing problem? I check constrOptim but here i could only constraint the variables trans and times and not m

Re: [R] optim "a log-likelihood function"

2004-09-30 Thread Christian Schulz
ans)-lgamma(r))/gamma(trans+1)*(alpha/(alpha+times))**r*(times/(alpha+times))**trans l <- log(l0) sum(l) } Am Mittwoch, 29. September 2004 19:41 schrieb Sundar Dorai-Raj: > Christian Schulz wrote: > > Hello, > > > > i know that i have to use optim, but i'm confused how

Re: [R] optim "a log-likelihood function"

2004-09-29 Thread Christian Schulz
many thanks , that x are my parameters is the help ! christian > > LL <- function(x, trans, time) { >r <- x[1] >alpha <- x[2] >... >sum(l) > } > > optim(c(1, 1), LL, control = list(fnscale = -1), >trans = trans, time = time) > > Some style issues: > 1. Break up lines that

[R] optim "a log-likelihood function"

2004-09-29 Thread Christian Schulz
Hello, i know that i have to use optim, but i'm confused how its possible  maximize  the sum over all l[i] and get the optimized max(LL), r  and alpha? LL <- function(trans,time){    for(i in 1:length(trans){      l[i] <- log(lgamma(r+trans[i] - gamma(r+1)*(alpha/alpha+t[i]))**r)*(t[i]/alpha+t[i

[R] avoiding loops?

2004-09-26 Thread Christian Schulz
Hi, is it possible doing this "moving average" without a loop, because it is not really fast for dim(x) 300.000 50. I make some attempts with apply and sapply,but didn't get success until now. many thanks , christian ma <- function(x, FUN=mean, lag=5) { FUN=match.fun(FUN)

Re: [R] Multinomial Response Variable: Estimating the parameters

2004-09-22 Thread Christian Schulz
hmm, the design sounds for me similiar to choice-data from choice-based-conjoint. IMHO check library(MNP) ? regrads,christian Am Mittwoch, 22. September 2004 15:04 schrieb Martin Plöderl: > Hello! > > In a dyslexia-spelling-study we have a multinomial response variable > with four categories

Re: [R] montecarlo simulation

2004-09-20 Thread Christian Schulz
imho one easy example: n <- 50 reps  <- 1000 ms  <- single(reps) set.seed(378216) for(i in 1:reps) { x <- exp(rnorm(n)) ms[i] <- median(x) } hist(ms) regards, christian Am Montag, 20. September 2004 14:30 schrieb [EMAIL PROTECTED]: > Hy! > I would like to know how run a montecarlo simulation w

Re: [R] loading error of the Rcmdr library on Debian Sid

2004-09-15 Thread Christian Schulz
Hi, it seems you have to install the rgl package and this demand the gl4 java lib what is necessary, too. http://www.jausoft.com/products/gl4java/gl4java_install.html christian Am Mittwoch, 15. September 2004 12:01 schrieb Thomas Schönhoff: > Hello, > > I just tried to get Rcmdr package work

Re: [R] R post-hoc and GUI

2004-09-14 Thread Christian Schulz
Perhaps the package Rcmdr is a compromise for the people don't like command-line software. christian Am Dienstag, 14. September 2004 12:02 schrieb Paolo Ariano: > Hi * > i've done my anova anlysis but now i need post-hoc test, are these > included in R ? > > I've a Big problem, working with pe

[R] sweave and post "rpart"

2004-08-21 Thread Christian Schulz
Hi, have anybody positive experience how it is possible get the post output from a rpart-object in a large sweave file or is only the less nicely plot function instead of post possible??? \begin{figure}[htbp] \begin{center} <>= post(dtreeEB, title="Tree",digits=getOption("digits") - 0,use.n=T

Re: [R] Package rmutil

2004-08-19 Thread Christian Schulz
http://www.luc.ac.be/~jlindsey/rcode.html christian Am Donnerstag, 19. August 2004 22:30 schrieb Savano: > Users, > > Where I can to download rmutil package? > > thanks > > __ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] Dirichlet-Multinomial

2004-08-15 Thread Christian Schulz
Perhaps package VGAM with drichlet and Zelig helps. christian Am Sonntag, 15. August 2004 03:38 schrieb Z P: > Dear all, > > Is there any package in R, which can do the Dirichlet-Multinomial model > fit? It is a generalization of the beta-binomial model. I know Prof. > Lindsay has a package,

Re: [R] Fwd: Timebased predictions in postgresql.

2004-08-12 Thread Christian Schulz
Hi, hints for your r-related day ahead predictions you find in the second part of Louis Torgo's very usefuel: DataMining with R http://www.liacc.up.pt/~ltorgo/ DataMiningWithR/PDF/DataMiningWithR.pdf And for your PL/SQL intention: http://www.omegahat.org/RSPostgres/ christian Am Donnersta

Re: [R] extracting the t-statistic: just the numbers, please

2004-07-28 Thread Christian Schulz
> data(sleep) > t.test(extra ~ group, data = sleep)$statistic[1] t -1.860813 > t.test(extra ~ group, data = sleep)$statistic[[1]] [1] -1.860813 hope this helps, christian Am Donnerstag, 29. Juli 2004 07:57 schrieb Michael Rennie: > Hi, there > > I am quite sure there is a

Re: [R] Another big data size problem

2004-07-28 Thread Christian Schulz
Hi, i'm working with a ~ 250.000 * 150 data.frame and can share your problems - i've upgraded last weekend my notebook from 512MB -> 1024MB, it's really better especially for load, write.table , mysqlReadTable, mysqlWriteTable, because machine begin caching if RAM is full. One example: With

Re: [R] installing problems repeated.tgz linux

2004-07-26 Thread Christian Schulz
latex example * DONE (randomForest) Am Montag, 26. Juli 2004 18:56 schrieb Liaw, Andy: > > From: Christian Schulz > > > > Hi, > > > > i try several possibilities adn looking in the archive, > > but didn't getting success to install j.lindsey&

[R] installing problems repeated.tgz linux

2004-07-26 Thread Christian Schulz
Hi, i try several possibilities adn looking in the archive, but didn't getting success to install j.lindsey's usefuel "library repeated" on my linux (suse9.0 with kernel 2.6.7,R.1.9.1) P.S. Windows, works fine Many thanks for help Christian [EMAIL PROTECTED]:/space/downs> R CMD INSTALL -

Re: [R] --max-vsize and --max-nsize linux?

2004-07-20 Thread Christian Schulz
Many thanks for clear me up the vectorized approach what's indeed the advantage of R. regards, christian Am Dienstag, 20. Juli 2004 15:24 schrieb Marc Schwartz: > On Tue, 2004-07-20 at 07:55, Christian Schulz wrote: > > Hi, > > > > somtimes i have trivial recodin

[R] --max-vsize and --max-nsize linux?

2004-07-20 Thread Christian Schulz
Hi, somtimes i have trivial recodings like this: > dim(tt) [1] 252382 98 system.time(for(i in 2:length(tt)){ tt[,i][is.na(tt[,i])] <- 0 }) ...and a win2000(XP2000+,1GB) machine makes it in several minutes, but my linux notebook (XP2.6GHZ,512MB) don't get success after

[R] replace values but different replacement length

2004-07-02 Thread Christian Schulz
Hi, have anybody a hint/help how it's possible replace i.e. the NA values from BL02DATE with non-Missing values from BLOCKED and vice versa. Both variables are with an id in a 188.249 rows data.frame and my fr function didn't count the NA's. Many thanks Christian >>fr(BL02DATE) Co

[R] reshape speed improvement?

2004-06-21 Thread Christian Schulz
Hi, have anybody a hint how i can perform my speed for a big reshape jobs? My "long" data.frame have dim 1.342.1163and the "wide" data.frame could occur (if i don't filter the timevar) max. in a 246744 x 1444 data.frame with a lot of NA what could be set to 0. Neverthless i didn'

Re: [R] market-basket analysis in R

2004-06-09 Thread Christian Schulz
hrieb Wayne Jones: > Hi Christian, > > Thanks for that. The links will be very useful. > > Im surprised that no package exists in R though!! > > Regards > > Wayne > > > -----Original Message- > From: Christian Schulz [mailto:[EMAIL PROTECTED] > Sent:

Re: [R] market-basket analysis in R

2004-06-09 Thread Christian Schulz
I don't know any package!? but you could try: http://fuzzy.cs.uni-magdeburg.de/~borgelt/software.html http://www.cs.umb.edu/~laur/ARtool/ http://www.cs.waikato.ac.nz/ml/weka/ regards, Christian Am Mittwoch, 9. Juni 2004 13:27 schrieb Wayne Jones: > Hi there fellow R-users, > > Does anyone kn

Re: [R] level assignment

2004-06-08 Thread Christian Schulz
many thanks! christian > I'm not sure what exactly you are trying to do, but does replacing > > as.factor(msegmente[,i]) > > by > > factor(msegmente[,i], > levels = c(1, 3, 10, 29, 32, 38, 52, 53, 59), > labels = c("AK","GC","OC","AM","IA","ACH","ZBA","A9L","EHK")) > > yiel

[R] level assignment

2004-06-08 Thread Christian Schulz
Hi, i would like recocde some numeric variables in one step, but hanging unexpected in a level asignment problem? for(i in 2:length(msegmente)) { msegmente[,i] <- as.factor(msegmente[,i]) } Problem is that not every level is in every variable, so the asignment is necessary!? levels(LT.200301

Re: [R] delete duplicated from data.frame

2004-05-18 Thread Christian Schulz
Uwe and Sundar, many thanks and sorry for my confusion with indexes,values etc.. christian Am Dienstag, 18. Mai 2004 16:39 schrieb Uwe Ligges: > Christian Schulz wrote: > > Hi, > > > > ?unique > > unique returns a vector, data frame or array like x * but with dup

[R] delete duplicated from data.frame

2004-05-18 Thread Christian Schulz
Hi, ?unique unique returns a vector, data frame or array like x * but with duplicate elements removed * what i'm doing wrong delete duplicated rows with same MEMEBRNO. februar <- dmsegment[unique(dmsegment$MEMBERNO),] This reduce from 197.188 rows to 184.199 but duplicated MEMBERNO didn't

[R] list & calculaton in many df subsets

2004-05-18 Thread Christian Schulz
Hi, have anybody a hint /starting point how i can enlarge my code that's posiible for me make any calculaton's with variables in the 64 subset's. Example: I want calculate difference of two variables inside every of the 64 subset data.frames and getting this value in tList! Many thanks, Chr

Re: [R] Fwd: filter out many data.frames

2004-05-16 Thread Christian Schulz
> So, why are you doing these complicated things? Hmm, want upgrade my sklls, because i need more and more function's to reduce complexity in my analysis. And try , do.call and match.call seems very usefuel and i want at long last understand the flexbilty of this functions. > > Just using >

Re: [R] Fwd: filter out many data.frames

2004-05-16 Thread Christian Schulz
) & dtree$class04 == paste(data$class04[n]) & dtree$PREDICT==paste(data$PREDICT[n]),]))") tasign <- parse(text=tasign)[[1]] for(n in 1:nrow(data)) { TAsign <- do.call("substitute",list(tasign,list(n=n,X=as.name(n eval(TAsign) } Am Son

[R] Fwd: filter out many data.frames

2004-05-15 Thread Christian Schulz
X <- numeric(length(data.frame)) before the loop maybe work, because my computer works and works !? christian -- Weitergeleitete Nachricht -- Subject: filter out many data.frames Date: Sonntag, 16. Mai 2004 00:02 From: Christian Schulz <[EMAIL PROTECTED]> T

[R] filter out many data.frames

2004-05-15 Thread Christian Schulz
Hi , i would like filter out all combinations of a data-mining result? How i have to declare X because in every loop step it have another lengths ? X <- numeric(length(i1,...,i64)) ? Many thanks Christian tres <- function(data.frame) { + data <- expand.grid(class02 = c("A","B","C","D"),

Re: [R] what statistical method should i use?

2004-05-15 Thread Christian Schulz
IMHO Conjoint-Analysis and MarketSimluations - there exist some nice extensions for practical problems like adaptive-conjoint-analysis , choice-based conjoint analysis etc. christian Am Samstag, 15. Mai 2004 18:23 schrieb vinkwai wong: > in order to know which production the custumer most li

[R] benchmark dual amd opteron

2004-04-20 Thread Christian Schulz
Hi, is it possible to get the benchmark-results from anybody is using a common amd dual opteron with windows or linux, R.1.8.1 or 1.9.0? http://www.sciviews.org/other/benchmark/R2.R many thanks & regards, christian __ [EMAIL PROTECTED] mailing list

Re: [R] installing RMySQL

2004-04-07 Thread Christian Schulz
Your gcc cannot find libz, which most likely means that you do not have installed the development version of it. Search for libz or zlib in your rpm manager!? christian Am Mittwoch, 7. April 2004 12:47 schrieb Joerg Schaber: > Hi, > > I have problems installing RMySQL under R1.8.1 and RHl

[R] merge more than two tables

2004-04-06 Thread Christian Schulz
Hi have anybody a hint how i could merge i.e. 10 data.frames togehter. Ok i could do one merge after another but perhaps with few coding exist a better way? system.time(dm1 <- merge(Base,sub1 ,by.x ="MEMBERNO",by.y="MEMBERNO",all.x=T)) system.time(dm2 <- merge(dm2,sub2,by.x="MEMBERNO",by.y="M

Re: [R] Selecting Best Regression Equation

2004-04-05 Thread Christian Schulz
library(leaps) is imho a starting point. christian Am Montag, 5. April 2004 16:02 schrieb WilDscOp: > Dear all, > > Does R or S-plus or any of their packages provide any command to form any > of the following procedures to find Best Regression Equation - > > 1. 'All Possible Regress

Re: [R] R-business case

2004-03-16 Thread Christian Schulz
My humble idea from perspective of a "market researcher". Counting the different mail-adresses with *.com in the help-archives of the last years (nice Text-Mining-Archive) with a bot. Ok, perhaps somebody like me use a freemail, so it's biased ,too. Reasons may be different - my is a technical one

Re: [R] How to fit a classification model in R?

2004-03-15 Thread Christian Schulz
Perhaps step(lm.object) helps, what use a backward elimination of attributes , further i remind in library(leaps) some helpfuel things for modellimg selection. christian Am Dienstag, 16. März 2004 05:53 schrieb Richard A. O'Keefe: > I have about 20 000 cases with discrete variables (some ar

[R] levels x-axis (histogram)

2004-03-13 Thread Christian Schulz
Hi, how it's possible to get the level values (not the numeric values!) on the x-axis in a lattice histogram? I found nothing related in archives and my my attempts didn't success , but AKTIVE is a factor? Many thanks, christian histogram( ~AKTIVE | BIRTHMONTH,aspect=1,xlab="Geburtsmonat",data

Re: [R] SVM unbalanced classes

2004-03-09 Thread Christian Schulz
Hi, SVM have got the option class.weights to put the apriori-distribution for your target variable. To oversample, or undersample a specific class you have imho write a own function!? Perhaps it helps ,christian Am Dienstag, 9. März 2004 11:29 schrieb Frank Gerrit Zoellner: > Hi! > > I am u

[R] years from as.POSIXlt

2004-03-08 Thread Christian Schulz
Hi, how it's possible to extract the year and the number of days from Julian date. i'm little confused about the last two functions and ?years . EDATE comes from sqlQuery with as.is=T EDATE <- as.POSIXlt(datvears$ENROLLDAY) Many thanks, Christian > EDATE[1:5] [1] "2000-06-30 11:25:01" "2000

Re: [R] Slow reshape from 5x600000 to 6311 x 132

2004-03-04 Thread Christian Schulz
Hi, my reshape's from ~1.4 million obs. to ~150.00 obs. & 50 attr. goes surprinsing fast (1-2 miniutes), but is less complex then yours. Perhaps it is faster if you have no character.string as value - if it's possible for your data? Reshaping in the database is possible with innerselects ,bu

Re: [R] regular expressions in R?

2004-03-04 Thread Christian Schulz
Ann, there is something in base: regexpr(pattern, text, extended = TRUE, perl = FALSE, fixed = FALSE) IMHO show under ?grep christian Am Donnerstag, 4. März 2004 21:12 schrieb Ann Loraine: > Hello! > > Are there any additional packages (besides "regex") I could use to > incorporate regular e

[R] Re: cluster-gruop-match with other attributes after na.omit

2004-02-28 Thread Christian Schulz
cth1,by.x="ID",by.y="ID",all.x=T) Sure there is an easier way??? Thanks,Christian Am Samstag, 28. Februar 2004 14:07 schrieb Christian Schulz: > Hi, > > i want a cluster-analysis with clara, but getting an > error because in cldat are NA's. > > Error in clar

[R] cluster-gruop-match with other attributes after na.omit

2004-02-28 Thread Christian Schulz
Hi, i want a cluster-analysis with clara, but getting an error because in cldat are NA's. Error in clara(cldat[, 1:3], 4) : Each of the random samples contains objects between which no distance can be computed. cldatx <- subset(cldat,select=c(A,B,C)) cldaty <- na.omit(cldatx) Now , clara wo

Re: [R] logististic regression (GLM). How to get 95 pct. confidence limits?

2004-02-28 Thread Christian Schulz
Hi, in library(MASS) the function profile.glm should help you. christian Am Samstag, 28. Februar 2004 08:22 schrieb Niels Steen Krogh: > Dear R-list. > I'm doing af logistic analyses using gml. > The model explaines variations in Adverse events infections (0 og 1) using > age as explanatory

[R] Filter out some levels?

2004-02-24 Thread Christian Schulz
Hi , how is it possible t cut some levels from one factor to subsetting a data.frame on? subdata <- subset(data, data$FACTOR="1" | data$FACTOR="BETA" | data$FACTOR="XY") ??? Maybe a modifcation here is better, but how? mergex[mergex$PLZX %in% levels(mergex$PLZX) ,] Many thanks and regards,

Re: [R] understanding loops for "loop-plotting"

2004-02-16 Thread Christian Schulz
yes, yesterday when i go to sleep i recognize my stupid error! Thanks,Christian Am Dienstag, 17. Februar 2004 03:42 schrieb Paul Murrell: > Hi > > If you make the pdf() call BEFORE entering the loop does it do what you > want? > > Paul > > Christian Schulz wrote: >

[R] understanding loops for "loop-plotting"

2004-02-16 Thread Christian Schulz
Hi, i make some practice on "loops" to understand this important issue in "difference" to the wrappers like apply finally! The point is that i want plot's for different different const and wish in one pdf the 5 plots . So i want plots for const=1:5 which change the undelying data expressed

Re: [R] running R from PHP

2004-02-04 Thread Christian Schulz
Perhaps this is a interesting starting point for you? http://steve.stat.tku.edu.tw/R_PHP/doR.html regards,christian Am Dienstag, 3. Februar 2004 03:26 schrieb [EMAIL PROTECTED]: > I would like to construct a PHP script that runs R to generate a > graphics file. Running R itself is no problem.

Re: [R] Assistance with data import from Statistica

2004-02-01 Thread Christian Schulz
oops , sorry i'm misreading you mean statistica not stata. So i only have the notice that the command-line utility dataload is very usefuel. One possible download is here: http://www.steepturns.com/filedown/dataload.zip ,but i remember there exist a newer version which could handle *.Rdata file

Re: [R] Assistance with data import from Statistica

2004-02-01 Thread Christian Schulz
I'm never work with Stats but IMHO you find in library(foreign) all what you need. cheers,christian Am Sonntag, 1. Februar 2004 09:39 schrieb Steve Burgess: > I am a new R user attempting to convert files from Statistica to R. I > can export from Statistica to SPSS .por format, but not to the

Re: [R] in which column is an entry?

2004-01-31 Thread Christian Schulz
N/Inf in foreign function call (arg 6) In addition: Warning message: Ran out of iterations and did not converge in: fitter(X, Y, strats, offset, init, control, weights = weights, Am Samstag, 31. Januar 2004 18:54 schrieben Sie: > On Sat, 31 Jan 2004, Christian Schulz wrote: > > Yes, ma

Re: [R] in which column is an entry?

2004-01-31 Thread Christian Schulz
Yes, many thanks i have really to avoid think in loops :-) christian Am Samstag, 31. Januar 2004 16:57 schrieb Chuck Cleland: > Christian Schulz wrote: > > df is a data.frame with 43 colums and 29877 rows with lot of NA. > > I want the column number for all respondendt

[R] in which column is an entry?

2004-01-31 Thread Christian Schulz
Hi, df is a data.frame with 43 colums and 29877 rows with lot of NA. I want the column number for all respondendts in one column where is the first entry >=0 as columnnumber. my first step: time <- function(df) + {for (i in 1:length(df [,1])) { + which(df[i,1]:df[i,43] >= 0

Re: [R] RMySQL for R1.8.1 on Windows

2004-01-29 Thread Christian Schulz
Hi, you have to install RMySQL-0.5.3 from source with Rcmd INSTALL RMySQL*.tgz but before this works you have to reimp the lib/opt/libmysql.lib You find reimp in Mingw Installation. hope this helps, regards,christian Am Donnerstag, 29. Januar 2004 17:00 schrieb Hoeven, Maarten van der: > Hi

  1   2   >