Displaying 20 results from an estimated 3000 matches similar to: "Questions about use of multinomial for discrimination."
2006 Aug 10
1
logistic discrimination: which chance performance??
Hello,
I am using logistic discriminant analysis to check whether a known
classification Yobs can be predicted by few continuous variables X.
What I do is to predict class probabilities with multinom() in nnet(),
obtaining a predicted classification Ypred and then compute the percentage
P(obs) of objects classified the same in Yobs and Ypred.
My problem now is to figure out whether P(obs) is
2006 Feb 22
2
does multinomial logistic model from multinom (nnet) has logLik?
I want to get the logLik to calculate McFadden.R2 ,ML.R2 and
Cragg.Uhler.R2, but the value from multinom does not have logLik.So my
quetion is : is logLik meaningful to multinomial logistic model from
multinom?If it does, how can I get it?
Thank you!
ps: I konw VGAM has function to get the multinomial logistic model
with logLik, but I prefer use the function from "official" R
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?
2010 Dec 15
0
Multinomial Analysis
I want to analyse data with an unordered, multi-level outcome variable, y. I am asking for the appropriate method (or R procedure) to use for this analysis.
> N <- 500
> set.seed(1234)
> data0 <- data.frame(y = as.factor(sample(LETTERS[1:3], N, repl = T,
+ prob = c(10, 12, 14))), x1 = sample(1:7, N, repl = T, prob = c(8,
+ 8, 9, 15, 9, 9, 8)), x2 = sample(1:7, N, repl =
2004 May 07
1
scores from multinomial logistic regression
Dear all,
I'm interested in extracting the score from multinomial logistic regression
models fit using multinom, to assess the stregth of assocation of the
parameter with the response (akin to the score from clogit/cox regression).
currently I'm using R 1.8.1.
Is there a function that will extract the score from a multinom object or
how i can get back to it? or from using glm?
I
2012 Jan 05
2
difference of the multinomial logistic regression results between multinom() function in R and SPSS
Dear all,
I have found some difference of the results between multinom() function in
R and multinomial logistic regression in SPSS software.
The input data, model and parameters are below:
choles <- c(94, 158, 133, 164, 162, 182, 140, 157, 146, 182);
sbp <- c(105, 121, 128, 149, 132, 103, 97, 128, 114, 129);
case <- c(1, 3, 3, 2, 1, 2, 3, 1, 2, 2);
result <- multinom(case ~ choles
2007 Jun 21
2
Multinomial models
Hello,
I am VERY new to R (one week) and I am trying to run a multinomial logit model.
The model I am using is
> model1 <- multinom(Y ~ X1 + X2 + , ..., Xn)
if I put in
> summary(model1)
I get
#Error in function (classes, fdef, mtable) :
unable to find an inherited method for function "fitted", for
signature "multinom"
and if I put in
> coef(model1)
2005 Nov 21
2
Multinomial Nested Logit package in R?
Dear R-Help,
I'm hoping to find a Multinomial Nested Logit package in R. It would
be great to find something analogous to "PROC MDC" in SAS:
> The MDC (Multinomial Discrete Choice) procedure analyzes models
> where the
> choice set consists of multiple alternatives. This procedure
> supports conditional logit,
> mixed logit, heteroscedastic extreme value,
2009 Feb 24
0
multinom() and multinomial() interpretation
Hello and thanks in advance for any advice.
I am not clear how, in practice, the multinom() function in nnet and the
multinomial() function in VGAM differ in terms of interpretation. I
understand that they are fit differently. Are there certain scenarios where
one is more appropriate than the other? In my case I have a dependent
variable with 4 categories and 1 binary and 4 continuous
2003 Jan 24
3
Multinomial Logit Models
Hi
I am wanting to fit some multinomial logit models (multinom command in
package nnet)
Is it possible to do any model checking techniques on these models
e.g. residual, leverage etc. I cannot seem to find any commands that
will allow me to do this.
Many thanks
----------------------
L.E.Gross
L.E.Gross at maths.hull.ac.uk
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
2013 May 24
1
Multinomial logistic regression
Is it possible to use function "glm" in case when my outcome variable has 5
different classes? I have seen examples only when using binomial outcome
variable.
What about using function "multinom"? How do I to get the signifigance and
the confidence levels of the coefficients and the value of goodness of the
model with this function?
Thank You for Your help!
--
View this
2007 Mar 26
1
fitted probabilities in multinomial logistic regression are identical for each level
I was hoping for some advice regarding possible explanations for the
fitted probability values I obtained for a multinomial logistic
regression. The analysis aims to predict whether Capgras delusions
(present/absent) are associated with group (ABH, SV, homicide; values
= 1,2,3,), controlling for previous violence. What has me puzzled is
that for each combination the fitted probabilities are
2008 Jun 20
1
omnibus LR in multinomial model
If one estimates a model using multinom, is it possible to perform the
omnibus LR test ( the analogue to omnibus F in linear models ) using
the output
from multinom ? The residual deviance is there but I was hoping I could
somehow pull out the deviance based on just using an intercept ?
Sample code is below from the CAR book but I wasn't sure how to do it
based on that example. Thanks
2007 Oct 03
1
help with stepclass (klaR)
I use Windows, R version 2.5.1
When I try to run stepclass (klaR) I get an error message/warning saying:
1: error(s) in modeling/prediction step in: cv.rate(vars = c(model, tryvar),
data = data, grouping = grouping, ...
Actually, I look 16 warnings of this type. Can anyone tell me what this
means?
Also, it returns only 2 out of the 79 variables as important, however these
variables
2008 Nov 26
1
Estimates of coefficient variances and covariances from a multinomial logistic regression?
Hello and thanks in advance for any help,
I am using the 'multinom' function from the nnet package to calculate a
multinomial logistic regression. I would like to get a matrix estimates of
the estimated coefficient variances and covariances. Am I missing some
easy way to extract these?
Grant
[[alternative HTML version deleted]]
2009 Jun 12
0
Multinomial logistic regression in an ANOVA-like framework
Dear all,
I have a problem for multinomial logistic regression: the response
variable is multinomial (score 1-5) and the two predictors are
categorical; all that comes from panelists (it's a kind of preference
study), which I treat as a block and include in the model (is it
correct?). I would like to see the results in the ANOVA-like
framework. Fitting the multinom() function from the nnet
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
2010 Feb 11
1
Rounding multinomial proportions
I present you with a function that solves a problem that has bugged me for
many years. I think the problem may be general enough to at least consider
adding this function, or a revamped version of it, to the 'stats' package,
with the other multinomial functions reside.
I'm using R to export data to text files, which are input data for an
external model written in C++. Parts of the
2005 Apr 11
1
multi-class modeling
Hi,
Just wonder if someone could comment on using linear
discriminant analysis (LDA) vs. multinomial logistic
regression in multi-class classification/prediction
(nomial dependent variable, not ordinal)? What kind of
difference in results can I expect from the 2 methods,
which is better or more appropriate, or under what
condiditon should I used one instead of the other? And
is there other