[R] Error with sem function df = -6

2013-07-22 Thread Immanuel Williams
Hello all, I have an issue where I am generating data and trying to confirm the estimates using a sem. I keep getting an error about the degree of freedom being negative "Error in sem.default(ram, S = S, N = N, raw = raw, data = data, pattern.number = pattern.number, : The model has negative degr

[R] kernlab: ksvm() bug?

2011-08-26 Thread Immanuel
meters. I tried to use setTimeLimit() but that doesn't seem to help. I suspect that ksvm() calls c code that does not respond to the time limit. I don't know what else to try. Should this be considered to be a bug? Does anyone know a workaround? best regards, Immanuel __

Re: [R] Threads in R

2011-08-24 Thread Immanuel
Thanks again, you are perfectly right. I checked and saw I was indeed polluting my machine with unclosed threads. On 08/23/2011 01:34 AM, Peter Langfelder wrote: > On Mon, Aug 22, 2011 at 3:12 PM, Immanuel wrote: >> Hello, >> >> thanks for the input. Below is a small

Re: [R] Threads in R

2011-08-22 Thread Immanuel
Hello, thanks for the input. Below is a small example, simpler then expected :) I'm just curious why I can't see any output from print(i). -- library(multicore) f_long <- function() { for (i in 1:1){ a=i} print(i) return("finished") } p_long <- para

[R] Threads in R

2011-08-22 Thread Immanuel
ate a will. Would this be possible? Any pointers in the right direction? A looked briefly a snow and Rmpi but they seem to serve other needs. best regards, Immanuel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] How to abort function execution after x-seconds

2011-08-20 Thread Immanuel
Hello Bert, thanks for the suggestion. I should have mentioned that, sadly I can NOT change the function that does the optimization. best, Immanuel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] How to abort function execution after x-seconds

2011-08-20 Thread Immanuel
Hello all, I'm running a parameter grid optimization ( ksvm, kernlab package) and the optimizer seems not to converge for certain parameters and stays in a infinity loop. Would it be possible to abort the execution after x-seconds and continue with the next parameter set? Which R function do n

[R] ggplot2 avoid automatic color selection

2011-06-10 Thread Immanuel B
,data = cellLine7064, color = drug, geom = c("line", "point")) best regards, Immanuel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posti

[R] test cases (data) for data based modeling

2011-06-06 Thread Immanuel B
asyer way to that? I guess what I'm basically looking for is some kind of unit testing framework to generate test data for machine learning tasks, I read about the package RUnit but don't really know how to proceed from there. Any ideas? How do you test your data analysis code? best re

Re: [R] how to store object without loosing their class property

2011-05-31 Thread Immanuel B
ot;svm" > > For understanding what c does in your case: > > c(list(first=1, second=2), list(third=3, fourth=4)) > # compare this with list(list(first=1, second=2), list(third=3, fourth=4)) > > Kenn > > On Tue, May 31, 2011 at 4:43 PM, Immanuel B wrote: >> Hell

[R] how to store object without loosing their class property

2011-05-31 Thread Immanuel B
Hello all, I'm trying to store some objects (class = "svm") , but if I use a list the objects get somehow converted and I can't retrieve them as objects of type "svm". So how to I properly store objects of that kind? best regards --- library(e1071) data(iris) attach(iris) ## classifica

[R] how to interpret coefficients from multiclass svm using libsvm (for multiclass R-SVM)

2011-05-30 Thread Immanuel B
coefs, can someone explain me what this values are? I understand them in the 2-class problem where this is a 1-D vector... the help only says : coefs The corresponding coefficients times the training labels. best regards Immanuel [[alternative HTML versi

[R] how to train ksvm with spectral kernel (kernlab) in caret?

2011-05-28 Thread Immanuel
Hello all, I would like to use the train function from the caret package to train a svm with a spectral kernel from the kernlab package. Sadly a svm with spectral kernel is not among the many methods in caret... using caret to train svmRadial: -- library(caret) library(kernlab) d

Re: [R] aftreg vs survreg loglogistic aft model (different intercept term)

2010-11-26 Thread Immanuel
I add an example , all the variables are mutually excluding dummy variables, notice the different intercept: 5.627 vs 5.545: survreg: Value Std. Error zp (Intercept) 5.6270.00887 634.3 0.00e+00 Var1.recR2 -0.1080.01026 -10.5 1.00e-25 Var1.recR3 -0.4900.01099

[R] aftreg vs survreg loglogistic aft model (different intercept term)

2010-11-25 Thread Immanuel
icients have a so big influence on the intercept term? Thank you Immanuel -- View this message in context: http://r.789695.n4.nabble.com/aftreg-vs-survreg-loglogistic-aft-model-different-intercept-term-tp3059250p3059250.html Sent from the R help mailing list archiv

[R] Set colour in tcl variable

2010-11-19 Thread Immanuel Seeger
ise it should display wrong<-tclVar('wrong') in red! To display the variables is no problem, but getting colour into them. Up to now for me it was only possible to set the colour of the whole label. Any advice? Thanks! Immanuel Seeger [[altern

Re: [R] count occurrence and distance of characters in string

2010-11-04 Thread Immanuel
rn that the distances between the "o"'s found is 3 , 2, 4 - On 11/05/2010 12:28 AM, Charles C. Berry wrote: > On Thu, 4 Nov 2010, Immanuel wrote: > >> Hello all, >> >> I want to know how often one character occurs in a given string >> and

[R] count occurrence and distance of characters in string

2010-11-04 Thread Immanuel
Hello all, I want to know how often one character occurs in a given string and the distance from between every two occurences. (distance = other characters between them). thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] zoo.read intraday data

2010-10-25 Thread Immanuel
:00) 421.6 421.6 421.5 421.5 261 (06.02.01 02:00:00) 421.3 421.3 421.3 421.3 05 Open High Low Close Up Down 421.2 421.2 421.2 421.2 110 421.2 421.4 421.2 421.4 70 421.6 421.6 421.5 421.5 261 421.3 421.3 421.3 421.3 05 On 10/25/2010 03:47 PM, Gabor Grothendi

Re: [R] zoo.read intraday data

2010-10-25 Thread Immanuel
Hey, work's like a charm. thanks __ R-help@r-project.org 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

[R] zoo.read intraday data

2010-10-25 Thread Immanuel
Hello all, I'm trying to use zoo.read but can't figure out how to deal with the time format. (example below) would be nice if someone could help. best regards, Immanuel --- L <- "Date,Time,Open,High,Low,Close,Up,Down

Re: [R] equalize function with zero and convert it

2010-08-26 Thread Immanuel Seeger
] Gesendet: Donnerstag, 26. August 2010 14:56 An: Immanuel Seeger Cc: r-help@r-project.org Betreff: Re: [R] equalize function with zero and convert it On Thu, Aug 26, 2010 at 6:57 AM, Immanuel Seeger wrote: > Dear all, > I want to equalize a symbolic derivative (of a function with two > variab

[R] equalize function with zero and convert it

2010-08-26 Thread Immanuel Seeger
o non-symbolic variables it's working with uniroot(f, c(-10, 10))$root. Thank you! Immanuel Seeger [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea

[R] R and TK Error "can't find objects"

2010-08-11 Thread Immanuel Seeger
there is some problem with the initiation/transfer of the variables from the GUI to the "C:/.../funktion.R"! Maybe as.numeric(tclObj(...)) is not the right one? But then I don't understand why it's working in the easier example above. The error is

Re: [R] Error in as.environment(pos): using 'as.environment(NULL)' isdefunct

2010-08-08 Thread Immanuel Seeger
üngliche Nachricht- Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von Immanuel Seeger Gesendet: Donnerstag, 5. August 2010 11:56 An: r-help@r-project.org Betreff: [R] Error in as.environment(pos): using 'as.environment(NULL)' isdefunct Hello, I’m usi

[R] Error in as.environment(pos): using 'as.environment(NULL)' is defunct

2010-08-05 Thread Immanuel Seeger
Hello, I’m using R 2.11.1 with Tinn-R 1.17.2.4. I hope the given informations are enough (it’s my first entry here) The as.environment(pos) error appears in using the following code which should open a function in an other R-file. Here some extractions of the code: HZ<-tclVar(seq(length=a,f

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Immanuel
Hey, saved my day. Now can watch the football semi-final thanks > Turn them into factors with the appropriate levels before counting > them with table: > > # generate an input string n long > set.seed(123) > n <- 300 > lets_1 <- paste(sample(letters[1:5], n, replace = TRUE), collapse = "") > lets_2

Re: [R] use sliding window to count substrings found in large string

2010-07-07 Thread Immanuel
ns zero entries for all the substrings found in table_2 but not in table_1? best regards Immanuel > Try this: > > # generate an input string n long > set.seed(123) > n <- 300 > lets <- paste(sample(letters[1:5], n, replace = TRUE), collapse = "") > > # ge

[R] use sliding window to count substrings found in large string

2010-07-07 Thread Immanuel
which methods to work. I did read through the man pages and goggled a lot, but still don't know how to approach this. best regards, Immanuel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting