Displaying 20 results from an estimated 100 matches similar to: "help with stepclass (klaR)"
2007 Sep 20
0
error in manova
I work with Windows, R 2.4.1. I'm a beginner with R!
After doing a Discriminant Function Analysis, I am trying to run manova to
get a measure of significance of my lda results. I want to predict groups 1
through 4 using 78 variables (bad group/var ratio, I know, but I'm just
exploring the possibilities right now). I've tried with a test matrix and I
get my results fine, so I think
2007 Jun 05
1
klaR stepclass
Hi,
I'm trying to use "stepclass" to do a stepwise variable selection with
method=lda. I keep getting this warning message, which shows up once
for each variable added to the model during variable selection:
Warning message:
error(s) in modeling/prediction step in: cv.rate(vars = c(model,
tryvar), data = data, grouping = grouping,
I don't know how to interpret this warning. I
2010 Apr 29
1
randomness in stepclass (klaR) or lda (MASS) ?
Hi,
a colleague ran a stepwise discriminant analysis
twice in a row and got different results, suggesting
some "sochasticity" in the algorithms involved.
I looked at her data and found that there was a lot
of collinearity, so that I reckoned that maybe "stepclass"
(klaR) cannot find a clear winner when trying to include a
new variable and makes a random choice. Is that true?
2005 Jul 05
1
Getting runtime error in stepclass
Hi!
I got the following runtime error when I tried to use svm method with
stepclass.
Error in "colnames<-"(`*tmp*`, value = c("0", "1")) :
attempt to set colnames on object with less than two dimensions
I repeated the same sequence of statements but this time I used the
classification function used in the example, i.e., "lda" and it worked
fine
2009 Mar 24
1
Discriminant analysis - stepwise procedure
Dear R users,
I have some environmental variables and I need to find the best combination
of them in order to separate two main groups (coded 1 and 2). I have
performed a discriminant analysis using the stepclass function as a method
for selecting the most relevant environmental variables.
The problem is that this function includes a parameter (start.vars) and my
results change a lot when I
2009 Nov 27
0
Questions about use of multinomial for discrimination.
Dear All,
I am looking at discriminating among several individuals based on a few
variable sets (I think some variables do not make sense unless they are
entered together, so I "force" them into the models together, hence
datasets). I have done so with linear discriminant analysis (LDA) using
"MASS::lda", with acceptable results. However, one of my collaborators
2011 Feb 27
2
regularized dfa rda (Klar): problems with predictions
Dear all, I am trying to do a n-fold cross-validation for a regularized discrimant function analysis using rda from the package klaR. However, I have problems to predict the groups from the test/validation sample. The exmaples of the R documantation and some online webpage also do not work. Does anybody know what I have done wrong?
Here my code
# I want to use the first 6 observations for
2011 Feb 28
0
regularized discriminant function analysis using klaR: problems with predictions
Sorry, I forgot to mention that I used the package "klaR".
>
> Dear all, I am trying to do a n-fold cross-validation for a
> regularized discrimant function analysis using rda from the package
> klaR. However, I have problems to predict the groups from the
> test/validation sample. The exmaples of the R documantation and
> some online webpage also do not work.
2006 Oct 22
1
Question:shardsplot (package:klaR)
Dear all,
I have a question on the shardsplot package:klaR(see the below Example).
Plese tell me the meanings of " logstand <- t((t(logcount) / sdlogcount) *
c(1,2,6,5,5,3))", much more.
Why does this example use "c(1,2,6,5,5,3)" ?
Examples:
# Compute clusters and an Eight Directions Arranged Map for the
# country data. Plotting the result.
2010 Nov 03
2
[klaR package] [NaiveBayes] warning message numerical 0 probability
Hi,
I run R 2.10.1 under ubuntu 10.04 LTS (Lucid Lynx) and klaR version 0.6-4.
I compute a model over a 2 classes dataset (composed of 700 examples).
To that aim, I use the function NaiveBayes provided in the package
klaR.
When I then use the prediction function : predict(my_model, new_data).
I get the following warning :
"In FUN(1:747[[747L]], ...) : Numerical 0 probability with
2007 Oct 16
1
error in sample ()
I am trying to get a random matrix based on an original matrix called
disperser.mx, with dimensions 30x73
When I write the following code:
>scramble = sample (disperser.mx)
>newmat = matrix(scramble, nrow=30)
I get the following warning message and a very weird matrix with 30 rows but
only 3 columns shown below:
Warning message:
data length [73] is not a sub-multiple or multiple of the
2007 May 25
1
Problem with rpart
I work on Windows, R version 2.4.1. I'm very new with R!
I am trying to build a classification tree using rpart but, although the
matrix has 108 variables, the program builds a tree with only one split
using one variable! I know it is probable that only one variable is
informative, but I think it's unlikely. I was wondering if someone can help
me identify if I'm doing something
2009 Jun 30
2
NaiveBayes fails with one input variable (caret and klarR packages)
Hello,
We have a system which creates thousands of regression/classification models and in cases where we have only one input variable NaiveBayes throws an error. Maybe I am mistaken and I shouldn't expect to have a model with only one input variable.
We use R version 2.6.0 (2007-10-03). We use caret (v4.1.19), but have tested similar code with klaR (v.0.5.8), because caret relies on
2010 Oct 05
6
SVM functions
Hi !
Right now I am learning to use svm functions available in R and trying to
use these function with given example. I was stuck with svmlight function
which is available in klaR package. Any help would be appreciated regarding
this function.
1. I am unable to use svmlight( ) which is available in package: klaR.
Although I have downloaded klaR_0.6-3 package from
2007 Jun 18
0
discriminant analysis with lda(MASS)
I use Widows, R version 2.4.1
I have 4 questions on lda (MASS) (code is pasted below):
1st. How can I obtain the statistics and p-value associated with
discriminant analysis? Am I supposed to calculate that manually by squaring
the svd value and looking the p value up in a table? I am writing the
following code:
training.mx<-read.table('C:\\Documents and Settings\\silvia\\My
2007 Aug 31
1
Question on shardsplot
Dear All,
Would you please tell me how to display the sample No. on the map ?
---Below commands don't display the sample No.(from 1 to 150).---
library(som)
library(klaR)
iris.som3 <- som(iris[,1:4], xdim = 14,ydim = 6)
library(klaR); opar<- par(xpd = NA)
shardsplot(iris.som3, data.or = iris,label = TRUE)
legend(3.5,14.3, col = rainbow(3), xjust =0.5, yjust = 0,legend =
2005 Jul 19
1
a possible bug in svmlight (PR#8012)
When I used svmlight, I got below error:
my command is:
foo <- svmlight(y~., data= myData)
the results:
Error in file(con, "r") : unable to open connection
In addition: Warning messages:
1: svm_learn not found
2: cannot open file '_model_1.txt'
> myData[1:2,]
y X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
1 1 63 1 0 0 145 233 1 1 0 150 0 2.3 1
2010 Mar 09
1
create picture (k -the nearest neighbours)
Hi
I want to create a nice picture about my result of k -the nearest neighbours
algorithm. Here is my easy code:
#################################
library(klaR)
library(ipred)
library(mlbench)
data(PimaIndiansDiabetes2)
dane=na.omit(PimaIndiansDiabetes2)[,c(2,5,9)]
dane[,2]=log(dane[,2])
dane[,1:2]=scale(dane[,1:2])
zbior.uczacy=sample(1:nrow(dane),nrow(dane)/2,F)
2005 Nov 28
1
GLMM: measure for significance of random variable?
Hi,
I have three questions concerning GLMMs.
First, I ' m looking for a measure for the significance of the random variable in a glmm.
I'm fitting a glmm (lmer) to telemetry-locations of 12 wildcat-individuals against random locations (binomial response). The individual is the random variable. Now I want to know, if the individual ("TIER") has a significant effect on the model
2011 Jul 07
1
Naive Bayes Classifier
Hi,
Currently I testing the packets that contain built-in features for
classification. Actually I looked packages such as: e1071, Klar, Caret,
CORElearn. However, from what I noticed when building a naive Bayesian
classifier, that they package use of the finite mixture model to estimate P
(x | C) and using a normal distribution. In my research I use binary data
and I want modeled P (x | C), eg the