[R] kernlab sigest

From: bjoern h menze <menze_at_urz.uni-heidelberg.de>
Date: Thu 17 Mar 2005 - 20:39:23 EST


hello,

I have the following problem setting parameter 'frac' in the sigest function of the kernlab package.

## executing the ?sigest example:

library(kernlab)
data(spam)
srange <- sigest(type~.,data = spam)

## works fine...

## setting 'frac' explicitly
## (in this case even to the default of .25)
options(error=recover)
srange <- sigest(type~.,data = spam, frac = .25)

## fails..

Error in model.frame(formula, rownames, variables, varnames, extras, extranames, :

        variable lengths differ

Enter a frame number, or 0 to exit

1:sigest(type ~ ., data = spam, frac = 0.25)
2:sigest(type ~ ., data = spam, frac = 0.25)
3:.local(x, ...)
4:eval(m, parent.frame())
5:eval(expr, envir, enclos)
6:model.frame(data = ..1, frac = 0.25, formula = x)
7:model.frame

any ideas?

thank you,
Bjoern

---

bjoern menze
menze @ uni-hd de
# 0170 5894150 (mobil)
# 06221 548829 (institut)
# 06221 470787 (heidelberg)
bergstrasse 42  69120 heidelberg

______________________________________________
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
Received on Thu Mar 17 20:43:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:50 EST