[R] question sur R

Spencer Graves spencer.graves at pdf.com
Tue Sep 6 00:26:50 CEST 2005


	  Thanks for providing such a concise example.  I ran your example and 
got the same error message with R 2.1.1 patched and with the MASS 
package version 7.2-19.  Moreover, I got the same error with the 
following simplification:

test1 = polr(rating ~ X1)
summary(test1)

	  There are two possible next steps from this point:

	  (1) Copy the code for "polr" into a script file and work through it 
line by line until you understand where the error message arises and why.

	  (2) Report the problem to the package maintainer, who in this case is 
Prof. Brian Ripley <ripley at stats.ox.ac.uk>.  In reporting your problem, 
please preceed your script with something like "set.seed(1)".  Because 
you use pseudo-random numbers, someone else may get a different result 
unless you both start with the same seed.  Also, please report which 
version of R and the MASS package you used.  And you can certainly add 
that I get essentially the same result.

	  If it were my problem, I would try these two steps in this order. 
However, a polite note to Prof. Ripley asking about this without tracing 
the error yourself would also be acceptable.

	  I'm sorry I was not of more help, but I don't have time to trace this 
problem myself.

	  spencer graves

Abdelhafid BERRICHI wrote:

>>hello
>>
> 
> 
> 
>>I've tried to simulate a normal law, like that :
>>
>>X1 = c(rnorm(90,50,5583),rnorm(160,1198,13034597),rnorm(40,13,125))
>>
>>
>>then, I've regressed my ordinal polytomic variable "rating"
> 
> 
> 
>         rating=c(rep(2,90),rep(3,160), rep(4,40))
>         rating = as.factor(rating)
>         rating = as.ordered(rating)
>         (ratins is an ordered factor)
> 
> 
> 
>   on the continuous variable X1 like that
> 
> 
> 
> 
>>library(MASS)
>>test2 = polr(rating ~ X1, method = c("probit"))
>>summary(test2)
>>
>>
>>but R indicates me the following error whereas X does not have infinite 
>>or missing values?
>>
>>
>>Re-fitting to get Hessian
>>Error in svd(X) : infinite or missing values in x
>>
>>THANKS
>>good by
> 
> 
> abdelhafid berrichi
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915




More information about the R-help mailing list