[R] npmc package error

From: Jos Kaefer <jos.kaefer_at_gmail.com>
Date: Tue 20 Jun 2006 - 23:24:11 EST


Hello all

I haven't got the npmc package to work yet, despite several attempts. I'm new to R, so this might be a stupid question, but it's taking me hours already, so I'm asking for help.

To be exact, this is what I typed, and what R told me:

++++++++++++++++++

> colsmall<-read.table("DBtest2")
> library(npmc)
> npmc(colsmall)

Error in as.vector(x, mode) : invalid 'mode' of argument
> small.data<-data.frame(class=colsmall$V1,var=colsmall$V2)
> small.data
      class   var
1     alpha 111.5
2     alpha 114.4
3     alpha 124.8
4     alpha 110.0
5     alpha 102.0
6     alpha 121.0

[etc]
> npmc(small.data)

Error in uniroot(f = function(arg) p - z.dist(arg, corr = corr, df = df, :

        f() values at end points not of opposite sign

++++++++++++++++++

The data file can be sent upon request.

What did I do wrong?

        [[alternative HTML version deleted]]



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 Tue Jun 20 23:37:56 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 21 Jun 2006 - 00:12:16 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.