Thompson's Manual to Accompany Agresti's book refers to a package named "repeated". It's not on CRAN from what I can see. I have seen rpm's for it. Where is the best place to download this package? Rick B.
repeated - R package
10 messages · Brian Ripley, Gabor Grothendieck, Rick Bilonick +1 more
On Wed, 10 Aug 2005 rab45+ at pitt.edu wrote:
Thompson's Manual to Accompany Agresti's book refers to a package named "repeated". It's not on CRAN from what I can see. I have seen rpm's for it. Where is the best place to download this package?
See the FAQ, Q5.1.5. As to the `best' place, it is hard to say as the URI keeps changing: currently it seems to be http://popgen.unimaas.nl/~jlindsey/rcode.html.
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 8/10/05, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
On Wed, 10 Aug 2005 rab45+ at pitt.edu wrote:
Thompson's Manual to Accompany Agresti's book refers to a package named "repeated". It's not on CRAN from what I can see. I have seen rpm's for it. Where is the best place to download this package?
See the FAQ, Q5.1.5. As to the `best' place, it is hard to say as the URI keeps changing: currently it seems to be http://popgen.unimaas.nl/~jlindsey/rcode.html.
I have found that one can generally find it from the Related Projects page on the R site. That is, from the R home page click on Related Projects (second last link on the left) and from that page click on Jim Lindsey's R page.
On Wed, 10 Aug 2005 rab45+ at pitt.edu wrote:
Thompson's Manual to Accompany Agresti's book refers to a package named "repeated". It's not on CRAN from what I can see. I have seen rpm's for it. Where is the best place to download this package?
See the FAQ, Q5.1.5. As to the `best' place, it is hard to say as the URI keeps changing: currently it seems to be http://popgen.unimaas.nl/~jlindsey/rcode.html. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
I downloaded from the site you suggested but I get an error when installing:
drwxr-xr-x 5 root root 4096 Apr 25 2003 repeated
-rw-rw-r-- 1 chippy chippy 176563 Aug 10 17:05 repeated.tgz
[root at ophth-bilora R]# man R
[root at ophth-bilora R]# R CMD INSTALL repeated
* Installing *source* package 'repeated' ...
** libs
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c chidden.f -o
chidden.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c cphidden.f -o
cphidden.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c cutil.c -o cutil.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c dist.c -o dist.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c gar.c -o gar.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c hidden.f -o
hidden.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c kcountb.c -o kcountb.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c kserieb.c -o kserieb.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c logitord.f -o
logitord.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c binnest.f -o
binnest.o
In file binnest.f:638
Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li
1
Error: Expected a right parenthesis in expression at (1)
make: *** [binnest.o] Error 1
ERROR: compilation failed for package 'repeated'
I guess I can go in and fix this and try re-compiling.
Rick B.
On Wed, 10 Aug 2005 rab45+ at pitt.edu wrote:
Thompson's Manual to Accompany Agresti's book refers to a package named "repeated". It's not on CRAN from what I can see. I have seen rpm's for it. Where is the best place to download this package?
See the FAQ, Q5.1.5. As to the `best' place, it is hard to say as the URI keeps changing: currently it seems to be http://popgen.unimaas.nl/~jlindsey/rcode.html. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
I downloaded from the site you suggested but I get an error when
installing:
drwxr-xr-x 5 root root 4096 Apr 25 2003 repeated
-rw-rw-r-- 1 chippy chippy 176563 Aug 10 17:05 repeated.tgz
[root at ophth-bilora R]# man R
[root at ophth-bilora R]# R CMD INSTALL repeated
* Installing *source* package 'repeated' ...
** libs
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c chidden.f -o
chidden.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c cphidden.f -o
cphidden.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c cutil.c -o cutil.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c dist.c -o dist.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c gar.c -o gar.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c hidden.f -o
hidden.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c kcountb.c -o kcountb.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c kserieb.c -o kserieb.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c logitord.f -o
logitord.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c binnest.f -o
binnest.o
In file binnest.f:638
Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li
1
Error: Expected a right parenthesis in expression at (1)
make: *** [binnest.o] Error 1
ERROR: compilation failed for package 'repeated'
I guess I can go in and fix this and try re-compiling.
Rick B.
When I go into binnest.f, here is what I see: C Calculate First Derivative Do kk = 1, t1 Gradient(kk) = Gradient(kk) + (D1_beta(kk) / Li) End do Do kk = 1, t2 Gradient(t1+kk) = Gradient(t1+kk) + (D1_Sig1(kk) / Li) End do Do kk = 1, t3 line 638 ->Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li) End do As you can see, line 638 looks just fine. Why do I get a compilation error? Rick B.
When I go into binnest.f, here is what I see: C Calculate First Derivative Do kk = 1, t1 Gradient(kk) = Gradient(kk) + (D1_beta(kk) / Li) End do Do kk = 1, t2 Gradient(t1+kk) = Gradient(t1+kk) + (D1_Sig1(kk) / Li) End do Do kk = 1, t3 line 638 ->Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li) End do As you can see, line 638 looks just fine. Why do I get a compilation error? Rick B.
I used a text editor to remove two blanks from the front of line 638 and it compiled without errors. Now I have to find the "rmutil" package and install it to get repeated working. Rick B.
In my quest to install the repeated package, I have also to install the
"rmutil" package. (BTW, I'm running Fedora Core 4 and R 2.1.1.) But I now
get several compilation errors for rmutil and I'm afraid to try to fix
them:
[root at ophth-bilora R]# R CMD INSTALL rmutil
* Installing *source* package 'rmutil' ...
** libs
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c cutil.c -o cutil.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c dist.c -o dist.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c gettvc.f -o
gettvc.o
In file gettvc.f:55
tvcov2(n,i)=-1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:79
recx=1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:84
reck=1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:86
if((recx.ge.1e300).and.(reck.ge.1e300)) ldone=.true.
1
Error: Real constant overflows its kind at (1)
make: *** [gettvc.o] Error 1
ERROR: compilation failed for package 'rmutil'
I downloaded both repeated and rmutil (for R > 2.0) from:
http://popgen.unimaas.nl/~jlindsey/rcode.html
Rick B.
On Thu, 11 Aug 2005 rab45+ at pitt.edu wrote:
When I go into binnest.f, here is what I see: C Calculate First Derivative Do kk = 1, t1 Gradient(kk) = Gradient(kk) + (D1_beta(kk) / Li) End do Do kk = 1, t2 Gradient(t1+kk) = Gradient(t1+kk) + (D1_Sig1(kk) / Li) End do Do kk = 1, t3 line 638 ->Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li) End do As you can see, line 638 looks just fine. Why do I get a compilation error? Rick B.
I used a text editor to remove two blanks from the front of line 638 and it compiled without errors. Now I have to find the "rmutil" package and install it to get repeated working.
Well spotted, almost certainly the closing bracket was not seen by the compiler because it ran into the comment field of the line (columns beyond 72), and failed with unmatched brackets. Some compilers allow arbitrarily long lines, but apparently not yours.
Rick B.
______________________________________________ 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
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
On Thu, 11 Aug 2005 rab45+ at pitt.edu wrote:
In my quest to install the repeated package, I have also to install the
"rmutil" package. (BTW, I'm running Fedora Core 4 and R 2.1.1.) But I now
get several compilation errors for rmutil and I'm afraid to try to fix
them:
[root at ophth-bilora R]# R CMD INSTALL rmutil
* Installing *source* package 'rmutil' ...
** libs
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c cutil.c -o cutil.o
gcc -I/usr/lib/R/include -I/usr/local/include -fPIC -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -c dist.c -o dist.o
gfortran -fPIC -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c gettvc.f -o
gettvc.o
In file gettvc.f:55
tvcov2(n,i)=-1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:79
recx=1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:84
reck=1e301
1
Error: Real constant overflows its kind at (1)
In file gettvc.f:86
if((recx.ge.1e300).and.(reck.ge.1e300)) ldone=.true.
1
Error: Real constant overflows its kind at (1)
make: *** [gettvc.o] Error 1
ERROR: compilation failed for package 'rmutil'
I downloaded both repeated and rmutil (for R > 2.0) from:
http://popgen.unimaas.nl/~jlindsey/rcode.html
Please note that you are using gfortran rather than g77 - they are not the same, and very possibly differ in how they react to code. The 1e301 constants do overflow the maximum real value (of the order of 3e+38), but 1d301 is less than the maximum double value of the order of 1.7e+308. So the variable declarations in the code do not seem to match the constants being used, which probably ought to have been written as "d" rather than "e" anyway. It doesn't look as though you'll be able to compile this code with your chosen compiler, could you rather try g77? There seems to be useful advice on the Fedora lists.
Rick B.
______________________________________________ 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
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
Please note that you are using gfortran rather than g77 - they are not the same, and very possibly differ in how they react to code. The 1e301 constants do overflow the maximum real value (of the order of 3e+38), but 1d301 is less than the maximum double value of the order of 1.7e+308. So the variable declarations in the code do not seem to match the constants being used, which probably ought to have been written as "d" rather than "e" anyway. It doesn't look as though you'll be able to compile this code with your chosen compiler, could you rather try g77? There seems to be useful advice on the Fedora lists.
Rick B.
______________________________________________ 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
-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
I think you are correct. Before I read your message I did a man page for gfortran and it says that it is not complete. Why FC4 choose this incomplete fortran compiler is beyond me. I have installed g77 and now trying to remove gfortran. Thanks. Rick B.