[R] R on a flash drive

2007-08-20 Thread Erin Hodgess
Dear R People:

Has anyone run R from a flash drive, please?

If so, how did it work, please?

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] compiling from source on Vista

2007-06-06 Thread Erin Hodgess
Dear R People:

In the "R Installation and Administration" manual, there is a note
that the process used to compile R from source will NOT work on Windows Vista.

Does anyone know if that situation has changed, please?

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] windows to unix

2007-05-25 Thread Erin Hodgess
Dear R People:

Is there any way to take a Windows version of R, compiled from source, 
compress it, and put it on a Unix-like environment, please?

thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] trouble with snow and Rmpi

2007-05-25 Thread Erin Hodgess
Dear R People:

I am having some trouble with the snow package.

It requires MPICH2 and Rmpi.

Rmpi is fine.  However, I downloaded the MPICH2 package, and installed.

There is no mpicc, mpirun, etc.

Does anyone have any suggestions, please?

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] make check prob with internet

2007-05-23 Thread Erin Hodgess
Dear R People:

There seem to be some problems with the make check still.

I changed the TMPDIR to C:\Temp, and that helped a great deal.

But I'm still having problems with the internet.r functions.

Please see below:
C:\esr\R-2.5.0\src\gnuwin32>make check
make check
 Testing package base 
Running examples in 'base-Ex.R' ...
Comparing `base-Ex.Rout' to `base-Ex.Rout.prev' ...319c319

running code in 'reg-S4.R' ...OK
running code in 'reg-win.R' ...OK
running code in 'reg-tests-3.R' ...OK
running tests of Internet and socket functions ...
  expect some differences
running code in 'internet.R' ...OK
69c69
< unable to resolve 'foo.bar'. 
---
> InternetOpenUrl failed: 'The server name or address could not be resolved' 
make[2]: [test-Internet] Error 1 (ignored)

Any help would be much appreciated.

thanks,
sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] make check problem

2007-05-23 Thread Erin Hodgess
Dear R People:

I thought all was well with my source compilation on Windows
until I tried "make check"

Here is an abbreviated version of my results:

C:\esr\R-2.5.0\src\gnuwin32>make check
make check
 Testing package base 
Running examples in 'base-Ex.R' ...
Comparing `base-Ex.Rout' to `base-Ex.Rout.prev' ...diff: extra operand 
`Settings/Erin/Local'
diff: Try `diff --help' for more information.
OK
;
 Testing package stats4 
Running examples in 'stats4-Ex.R' ...
Comparing `stats4-Ex.Rout' to `stats4-Ex.Rout.prev' ...diff: extra operand 
`Settings/Erin/Local'
diff: Try `diff --help' for more information.
OK
 Testing package tcltk 
Running examples in 'tcltk-Ex.R' ...
Comparing `tcltk-Ex.Rout' to `tcltk-Ex.Rout.prev' ...diff: extra operand 
`Settings/Erin/Local'
diff: Try `diff --help' for more information.
OK
rm -f *.exe *.o Rplots.ps
running strict specific tests ...
running code in 'eval-etc.R' ...OK
  comparing 'eval-etc.Rout' to './eval-etc.Rout.save' ...diff: extra operand 
`Settings/Erin/Local'
diff: Try `diff --help' for more information.
make[3]: *** [eval-etc.Rout] Error 1
make[2]: *** [test-Specific] Error 2
make[1]: *** [test-all-basics] Error 1
make: [test-Basic] Error 2 (ignored)


I've tried all kinds of tricks, but no luck.

Any help would be much appreciated (yet again).

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Possible ld.exe problem when building

2007-05-22 Thread Erin Hodgess
:gram.c:(.text+0x7d): undefined reference to `mbrtowc'
../main/libmain.a(gram.o):gram.c:(.text+0x392): undefined reference to `mbrtowc'
../main/libmain.a(plot.o):plot.c:(.text+0x910): undefined reference to `mbrtowc'
../main/libmain.a(util.o):util.c:(.text+0x3806): undefined reference to 
`mbrtowc'
../main/libmain.a(util.o):util.c:(.text+0x387c): undefined reference to 
`mbrtowc'
../main/libmain.a(util.o):util.c:(.text+0x39df): more undefined references to 
`mbrtowc' follow
../main/libmain.a(regex.o):regex.c:(.text+0x25b): undefined reference to 
`wcrtomb'
../main/libmain.a(regex.o):regex.c:(.text+0x37a): undefined reference to 
`mbrtowc'
../main/libmain.a(regex.o):regex.c:(.text+0x3dd): undefined reference to 
`wcrtomb'
../main/libmain.a(regex.o):regex.c:(.text+0xd3c): undefined reference to 
`mbrtowc'
../main/libmain.a(regex.o):regex.c:(.text+0xe39): undefined reference to 
`mbrtowc'
../main/libmain.a(regex.o):regex.c:(.text+0x220d): undefined reference to 
`mbrtowc'
../main/libmain.a(regex.o):regex.c:(.text+0x22fd): undefined reference to 
`btowc'
../main/libmain.a(regex.o):regex.c:(.text+0x2388): undefined reference to 
`wcrtomb'
../main/libmain.a(regex.o):regex.c:(.text+0x23e1): undefined reference to 
`wcrtomb'
../main/libmain.a(regex.o):regex.c:(.text+0x247d): undefined reference to 
`wcrtomb'
../main/libmain.a(regex.o):regex.c:(.text+0x5a6b): undefined reference to 
`btowc'
../main/libmain.a(regex.o):regex.c:(.text+0x5a91): undefined reference to 
`btowc'
../main/libmain.a(regex.o):regex.c:(.text+0x95f4): undefined reference to 
`btowc'
../main/libmain.a(scan.o):scan.c:(.text+0xb5b): undefined reference to `btowc'
../main/libmain.a(scan.o):scan.c:(.text+0xd12): undefined reference to `btowc'
../main/libmain.a(scan.o):scan.c:(.text+0xe45): more undefined references to 
`btowc' follow
../main/libmain.a(character.o):character.c:(.text+0x1dcf): undefined reference 
to `mbrtowc'
../main/libmain.a(character.o):character.c:(.text+0x528e): undefined reference 
to `wctrans'
../main/libmain.a(character.o):character.c:(.text+0x533f): undefined reference 
to `towctrans'
../nmath/libnmath.a(signrank.o):signrank.c:(.text+0xa3a): undefined reference 
to `expm1'
../nmath/libnmath.a(wilcox.o):wilcox.c:(.text+0xc0d): undefined reference to 
`expm1'
../nmath/libnmath.a(pgamma.o):pgamma.c:(.text+0x909): undefined reference to 
`expm1'
../nmath/libnmath.a(pgamma.o):pgamma.c:(.text+0xdc6): undefined reference to 
`expm1'
../nmath/libnmath.a(pexp.o):pexp.c:(.text+0x99): undefined reference to `expm1'
../nmath/libnmath.a(pexp.o):pexp.c:(.text+0xe6): more undefined references to 
`expm1' follow
getline/gl.a(getline.o):getline.c:(.text+0x13f5): undefined reference to 
`mbrtowc'
getline/gl.a(getline.o):getline.c:(.text+0x1acb): undefined reference to 
`mbrlen'
getline/gl.a(getline.o):getline.c:(.text+0x1b02): undefined reference to 
`mbrlen'
getline/gl.a(getline.o):getline.c:(.text+0x2160): undefined reference to 
`mbrtowc'
getline/gl.a(getline.o):getline.c:(.text+0x2700): undefined reference to 
`mbrtowc'
getline/gl.a(getline.o):getline.c:(.text+0x27f7): undefined reference to 
`mbrtowc'
getline/gl.a(getline.o):getline.c:(.text+0x2fe9): undefined reference to 
`mbrtowc'
getline/gl.a(getline.o):getline.c:(.text+0x319d): undefined reference to 
`mbrtowc'
collect2: ld returned 1 exit status
make[3]: *** [R.dll] Error 1
make[2]: *** [../../bin/R.dll] Error 2
make[1]: *** [rbuild] Error 2
make: *** [all] Error 2

c:\esr\R-2.5.0\src\gnuwin32>


Any suggestions would be much appreciated.  Yes, I know that I
should just use the binaries.  Other than that one, please.

thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] graphics on Ubunut

2007-05-18 Thread Erin Hodgess
Dear R People:

I'm working with R on the latest version of Ubuntu.

However, I can't get graphics to appear, even with the
simplest plot commands.

Has anyone run into that, please?

I'm using R-2.5.0 on Ubuntu Feisty Fawn.

(Please don't puke.  That's really the name)

Thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] installing R on Ubuntu

2007-04-16 Thread Erin Hodgess

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] priceIts and yahoo

2007-04-15 Thread Erin Hodgess
Dear R People:

About 2 years ago, there were a few messages about
the function priceIts from library(its) generating error
messages.

One of the suggested fixes at that time was to check
security software and such.

I'm getting the same message tonight, and have checked 
both from Windows and a Linux installation.

The other suggestion was to determine if there is still a
problem with the yahoo Finance website.

This may still be the problem.

Does anyone have any other suggestions, please?

Thanks in advance!
Sincerely,
Erin
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Using Java or Tcl/Tk in R

2007-03-29 Thread Erin Hodgess
Dear R People:

This is more of an opinion question please:
When putting together GUI type functions, is
it better to use JAVA or Tcl/Tk, please?

Any input is appreciated!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] By sentence

2007-03-28 Thread Erin Hodgess
Hi again!

Please try something like this:

> zone1.df
  zone  sex len
11 male  15
21 fema  20
31 fema  17
42 fema  19
52 male  18
> str(zone1.df)
'data.frame':   5 obs. of  3 variables:
 $ zone: Factor w/ 2 levels "1","2": 1 1 1 2 2
 $ sex : Factor w/ 2 levels "fema","male": 2 1 1 1 2
 $ len : int  15 20 17 19 18
> tapply(zone1.df$len,zone1.df[,-3],mean)
sex
zone fema male
   1 18.5   15
   2 19.0   18
> 

Hope this helps!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]



From: "Jorge Cornejo-Donoso" <[EMAIL PROTECTED]>
To: "'Erin Hodgess'" <[EMAIL PROTECTED]>
Subject: RE: [R]  RV: by sentence




OK.. Thank for the advice.
By and tapply works with 1 categorical variable, but what can be
used for 2 categorical variables. Example:
Zone   Sex Length
1   male 15
1   fema 20
1   fema 17
2   fema 19
2   male 18

The idea is to get the means by sex in each zone!

Thank in advance!

--

Jorge Cornejo Donoso

Universidad Austral de Chile

__
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
and provide commented, minimal, self-contained, reproducible code.

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] RV: by sentence

2007-03-27 Thread Erin Hodgess
Hello, Jorge!

This might help:

> fish.df
   Sex Length
1 male 15
2 fema 20
3 fema 17
4 fema 19
5 male 18
> str(fish.df)
'data.frame':   5 obs. of  2 variables:
 $ Sex   : Factor w/ 2 levels "fema","male": 2 1 1 1 2
 $ Length: int  15 20 17 19 18
> tapply(fish.df$Length,fish.df$Sex,mean)
fema male 
18.66667 16.5 
>

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

From: "Jorge Cornejo Donoso" <[EMAIL PROTECTED]>
Subject: [R] RV: By sentence




Hi dear listers

Do you know how to made a mean by one or more categorical variables?
I can do that quite easy on SAS by in R I just can't do it E.g.
Some fishes
Sex Lenght
male15
fema20
fema17
fema19
male  18

So the idea is mean(Lenght) by sex, in order to have sex: Male
mean=XX Sex: Fema mean=YY
In this case is quite easy to do it by a loop, but I have a huge DB
so is not an option. Any suggestion?

Thanks in advance!

--

Jorge Cornejo Donoso

Universidad Austral de Chile

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] creating R packs for all

2007-03-23 Thread Erin Hodgess
Dear R People:

I am in the process of creating an R package via Windows.

If I would decide to submit in to CRAN, what would I need to
do in order to make it run for the Linux or Mac People, please?

Thanks in advance!

Sincerely,
Erin
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] strange logical results

2006-12-29 Thread Erin Hodgess
Dear R People:  

I am getting some odd results when using logical operators:

> x <- seq(from=-1,to=1,by=0.1)

> > x
 [1] -1.0 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1  0.0  0.1  0.2  0.3  0.4
[16]  0.5  0.6  0.7  0.8  0.9  1.0
> x == -1
 [1]  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.9
 [1] FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.8
 [1] FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.7
 [1] FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.6
 [1] FALSE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.5
 [1] FALSE FALSE FALSE FALSE FALSE  TRUE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> x == -0.4
 [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
> 

Should this show as true also, please?

I saw this in both Windows and LINUX Versions 2.4.0

Thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] DOE teaching suggestions?

2006-12-09 Thread Erin Hodgess
Dear R People:

I will be teaching an undergraduate Design of Experiments class
in the Spring Semester.  It will be very much an applied course.

My question, please:  has anyone used R for a course like this, please?

I've tried Rcmdr for a regression course and just plain command
line for a time series course.

Should I use Rcmdr, or teach them to use the command line, OR is there
something else, please?

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] lpSolve and mixed signs

2006-11-14 Thread Erin Hodgess
Hi R People:

If you have a linear programming problem in which
some of the constraints have the "<=", some
have ">=" and some have "=", all in the same problem,
should the solver work?

I'm having trouble with that.  Any help much appreciated!

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]
whoops!
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] [

2006-11-14 Thread Erin Hodgess
R]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Plotting text on a graph

2006-10-23 Thread Erin Hodgess
Hi Daniel:

Here is a sample code that I have used:


z1 <- rexp(100)
z2 <- rexp(100)
z3 <- rexp(100)
par(mfrow=c(2,2),oma = c(0, 0, 3, 0))
curve(dexp,from=0,to=5)
hist(z1,main="Size 5")
hist(z2,main="Size 15")
hist(z3,main="Size 30")
mtext("Densities", outer = TRUE, cex = 1.5)

And this will do the trick.

Hope this helps!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]



Hi,

 

I plotted 12 graphs on a page and output to a png file.  I wanted to
have an overall title for all 12 graphs.  What command can I use to do
this?  Below is the code that plotted the 12 graphs in one page.  

 

# FM10 by Month/ Export the plot to Wash2005FM10.png

png(file="Wash2005FM10.png",bg="white")

par(mfrow = c(3,4))

# Plot 12 Month of OFM10, FFM10 

for(i in 1:12) {

Temp <- subset (Wash2005, MM == i)

plot (Temp$FM10.1,
Temp$FM10,main=month.name[i],xlim=c(5,25),ylim=c(5,25))

}

text(10,10, "Overall Title")  'This will plot "Overall Title" at
coordinate (10,10) on the last graph, and so it is not what I want.  

dev.off()

 

Thank you. 

 

Daniel Chan

Meteorologist

Georgia Forestry Commission

P O Box 819

Macon, GA 

31202

Tel: 478-751-3508

Fax: 478-751-3465

 


[[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
and provide commented, minimal, self-contained, reproducible code.

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Dennis Chabot poss. answer

2006-09-20 Thread Erin Hodgess
Hi Dennis!

Here is a possible solution to consider:


> a <- data.frame(x=1:25,y=rnorm(25))
> a
x   y
1   1  1.38958705
2   2 -0.45165628
3   3  0.86517671
4   4  0.40802481
5   5 -2.00104605
6   6  0.11152748
7   7  1.84400316
8   8  0.80775204
9   9 -0.12510867
10 10 -0.13650037
11 11 -0.63498148
12 12  1.70665004
13 13 -0.42427846
14 14  0.38587832
15 15 -0.07601500
16 16  0.40442795
17 17  1.78181958
18 18 -0.07199413
19 19 -0.62582419
20 20  0.71653130
21 21 -1.07557102
22 22 -0.04874676
23 23 -0.09447060
24 24 -0.99221486
25 25  0.16559026
> # Set row numbers
> b <- c(2,5,7,18,22)
> a[b,2] <- rnorm(length(b))
> a
x  y
1   1  1.3895870
2   2 -0.4613160
3   3  0.8651767
4   4  0.4080248
5   5 -0.5564420
6   6  0.1115275
7   7  1.6625939
8   8  0.8077520
9   9 -0.1251087
10 10 -0.1365004
11 11 -0.6349815
12 12  1.7066500
13 13 -0.4242785
14 14  0.3858783
15 15 -0.0760150
16 16  0.4044279
17 17  1.7818196
18 18  2.0357456
19 19 -0.6258242
20 20  0.7165313
21 21 -1.0755710
22 22 -1.2000225
23 23 -0.0944706
24 24 -0.9922149
25 25  0.1655903
 

Hope this can be useful!

Note:  I accidentally deleted the original e-mail.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] [OT] Important stat dates

2006-09-07 Thread Erin Hodgess
Dear R People:

Way Off Topic:

Is anyone aware of a website that contains important dates
in statistics history, please?

Maybe a sort of "This Day in Statistics", please?

I thought that my students might get a kick out of that.

(actually I will probably enjoy it more than them!)

Thanks for any help!

I tried (via Google) "today in statistics" and "today in statistics
history" but nothing worthwhile appeared.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] Substring and strsplit

2006-08-29 Thread Erin Hodgess
Dear R People:

I am trying to split a character vector into a set of individual
letters:

Ideal:
x3 <- c("dog")
"d" "o" "g"

I tried the following:
> strsplit(x3)
Error in strsplit(x3) : argument "split" is missing, with no default
> strsplit(x3,1)
[[1]]
[1] "dog"

I know that this is incredibly simple, but what am I doing wrong?

Either Windows or Linux 2.3.1

Thanks in advance!


Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] OT UNIX grep question

2006-08-09 Thread Erin Hodgess
Dear R People:

I want to use the "grep" command in UNIX/Linux to check
some words from the dictionary.

Let's say I use:

grep dog /usr/share/dict/words

and I get back

bulldog
dog
dogged

and so on.

How could I just get back "dog" with the grep command please?

Thanks,
Sincerely
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] listing of permutations

2006-08-02 Thread Erin Hodgess
Dear R People:

Suppose I have the 4 numbers: 1,2,3,4.

I would like to create a listing of the permutations
of 4 items taken 4 at a time.

Is there a built in function for that, please?

Thanks in advance!
R 2-3-1 for Windows or Linux
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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
and provide commented, minimal, self-contained, reproducible code.


[R] put R on a web server

2006-07-15 Thread Erin Hodgess
Dear R People:

Has anyone put R on a web server any time, recently, please?
(Red Hat Linux)


The University of Montana put a version up in 2003, but
I was wondering if anyone had done so, please?

Also, where would I find information on such an installation, please?

thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] installing R on RedHat

2006-06-27 Thread Erin Hodgess
Dear R People:

Yet again, I am attempting to install R on RedHat Linux.

Here is my sorry attempt to date:
[EMAIL PROTECTED] hodgess]$ rpm -vi R.rpm
warning: R.rpm: V3 DSA signature: NOKEY, key ID 97d3544e
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

I only want to write it to my own userid, since I am the only one
who uses it.

Any suggestions would be much appreciated.

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] latex function with lm

2006-06-21 Thread Erin Hodgess
Dear R People:

I have used the "latex" function from the Hmisc
package and it is just great!

However, I have a new question regarding that function:
is there an option for summary(lm(y~x)), please?  There are
options for different types of objects, but I didn't see one
for that.  Maybe I just missed it.

Thanks in advance!

R for Windows Version 2.3.1

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] R kicking us out

2006-06-13 Thread Erin Hodgess
Dear R People:

I am using R for teaching purposes in a large classroom.

Each computer has its own copy of R.

However, every once in a while, about half of us will get 
thrown out of R, for no apparent reason.

By the way, it has happened in other classrooms as well.


Has anyone else run into this, please?

If so, how have you solved this problem, please?

Thanks in advance!

R for Windows

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] lowesp program in simpleLoess

2006-06-11 Thread Erin Hodgess
Dear R People:

I use the binary version of R for Windows.

However, I would like to look at the Fortran code
for the simpleLoess function, please.

How could I see the underlying Fortran code, please?

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] Math symbols for labels in Perspective plots

2006-06-09 Thread Erin Hodgess
Dear Harsh:

I stole these lines from the Persp examples and 
the plotmath examples. 

>  x <- seq(-10, 10, length= 30)
>  y <- x
>  f <- function(x,y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
>  z <- outer(x, y, f)
>  z[is.na(z)] <- 1
>  op <- par(bg = "white")
>  persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue")
>  persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue",
+ltheta = 120, shade = 0.75, ticktype = "detailed",
+xlab = "X", ylab = "Y", zlab = "Sinc( r )"
+  ) -> res
> 
> ?plotmath
> title( expression(paste(plain(sin) * phi, "  and  ",
+  plain(cos) * phi)))
> 


Hope this helps!

By the way, this is from Windows.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]


Subject: [R] Math symbols for labels in Perspective plots


Hi ..
  
 I would like to have math symbols in perspective plots
  
  i tried :  persp(x,y,z,xlab=expression(phi))
  
  but it plots it as phi.
  
  Thanks.
  
  Harsh
  
 __

__
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


[R] factors and ops

2006-05-25 Thread Erin Hodgess
Dear R People

I have a variable which is an ID number that is a factor.

I would like to look for ID numberbs that are greeater than
a particular value.

However, factors are a big ugly for these operations.

I was messing with the HR data set from the SASmixed package.

HR$Patient is a factor like that.

Now if I used:
subset(HR,as.integer(as.character(Patient)) > 214)

that will work.

If seems to me that there may be a better way.
Is that true?

R Version 2.3.0 Windows

Thanks in advance!


sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] choosing a mirror

2006-05-22 Thread Erin Hodgess
Dear R People:

Is there a way to select a mirror from the command line
instead of via a menu, please?

I tried chooseCRANmirror but to no avail.

Thanks in advance.

R version 2.3.0 Windows.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] Rorca zip?

2006-05-15 Thread Erin Hodgess
Dear R People:

Is there a Windows binary for ROrca, please?

When I did the search on the R site, there were several links
to a zip file, but all of the links were broken.

Thanks in advance!

R Windows R-2.3.0

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] R and Java

2006-05-09 Thread Erin Hodgess
Dear R People:

Where are the rJava and SJava packages, please?

I looked for them to download but they are nowhere to be found.

Do they have their own list serves, please?

R Windows 2.3.


Thanks in advance!


Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] garch in tseries

2006-04-26 Thread Erin Hodgess
Hello again!

Is there a way to include a mean in the garch function in the
library(tseries), please?

I tried include.mean=T in the function statement but it didn't work

thanks in advance!

R Version 2.2.1 Windows
Sincerely,
Erin 
mailto: [EMAIL PROTECTED]

__
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


[R] garchFit from fSeries

2006-04-26 Thread Erin Hodgess
Dear R People:

I'm trying to use the garchFit function from the library(fSeries)

However, R freezes every time that I use it.

Is anyone else having this problem, please?

Thanks in advance!

R Version 2.2.1 Windows.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] GUI font size

2006-04-24 Thread Erin Hodgess
Dear R People:

On the Edit menu, there is a GUI preference tab.

On the Font option, the highest value is 18.

Has anyone ever had the font size set larger than that will any 
success, please?

Thanks,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]
PS Windows, R 2-2-1

__
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


[R] [O/T] undergrads and R

2006-04-24 Thread Erin Hodgess
Dear R People:

Are your undergraduate students receptive to learning R, as a rule?

Most of the time, mine really like it.  But this semester, they act as
though they are being eaten by rats when learning R.  They are not
trying at all.

Any similar experiences?  If anyone has any good ideas, I would be 
THRILLED to hear them, as I am using R in Summer School.

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] [OT] colors in a LaTex doc

2006-03-24 Thread Erin Hodgess
Dear R People:

I know that this is COMPLETELY off topic.

Does anyone know how to put colors into a LaTex document, please?
This is LaTex via WinEdt.

I can get colors via PcTex but not in WinEdt.

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] R icon image file

2006-03-15 Thread Erin Hodgess
Dear R People:

I would like to include a link to the R home page
on a web page for students.

I would like to have the "R" icon as part of the link.

Where is the image file please? (for the icon)

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] jpeg and pixels

2006-02-28 Thread Erin Hodgess
Dear R People:

When using the jpeg function for plotting,
is there a way to set the size in inches, please?

There is an option for width and height in pixels, but
not inches.


Any suggestions would be welcome!

R Version 2.2.1 Windows

Thanks in advance!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] install RPM file on Redhat

2006-02-26 Thread Erin Hodgess
Dear R People:

I downloaded the RPM for Red Hat Linux.

How do I install this, please?  When I looked 
at the R Intallation manual, it seemed to be
referring to installing from source.

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] R and packages

2006-02-20 Thread Erin Hodgess
Dear R People:

Here is yet another strange problem.  

I'm using R in one of my classes.  However, the computer lab has something
called "Deep Freeze" and the students cannot save anything to the hard drive.

I had R installed and things were working well.  They would save their 
.Rdata files to disks.

Now, we need to add more packages.  We can't download and we can't
bring them in via zip files (already tried both!)  When the zip files
are expanded, of course they build new directories..

I'm completely annoyed because learning to download packages
and installing them from local zips are actually important tasks!
We're also losing good teaching/learning time!

Anyhow, what I would like to do is produce a sort of combination R 
installation exe with our extra libraries as part of the package.

Does anyone have any suggestions on how this could be done, please?

This is R for Windows, Version 2.2.1

Thanks for any help!  Sorry about the totally weird problem!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] R and Power Point

2006-02-13 Thread Erin Hodgess
Dear R People:

I'm using R in a time series class.  This class is being
broadcast live to 2 remote sites via closed circuit TV.

My people at the remote sites are having a terrible time
seeing the computer screen as it is broadcast(resolution issues).  I have
decided to put together Power Point slides for the teaching.

I am currently saving the R screen as WMF files and inserting them
into PowerPoint.  While this works, it seems that there
might be a simpler method.  

Does anyone have any suggestions for the Power Point, please?

Thanks so much!
R Version 2.2.1 Windows
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] decomposed.ts class and method

2006-02-05 Thread Erin Hodgess
Dear R People:

In the function "decompose", the object has the class of "decomposed.ts".
(from package stats)

I would like to see the class definition and the method for the plotting.

However, when I use
isClass("decomposed.ts")

I get "FALSE".

When I check getMethods("plot")

there is no method for plot on decomposed.ts

Any suggestions, please?

Thanks in advance!

R Version 2.2.1 Windows

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] problem with mirror selection

2006-01-29 Thread Erin Hodgess
Dear R People:

I'm having trouble with selecting a mirror to download packages.

When I select the location, R just sits.  When I try to cancel
the program, it never quits.

Has anyone else run into this, please?  It only happens on my
laptop, not my desktop.  My inclination is to say that it might be
a problem with a firewall, but I thought I would check here as
well.



R Version 2.2.1 Windows.

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] graphics pages?

2006-01-10 Thread Erin Hodgess
Dear R People:

In S Plus, if you have a function which calls the plot
function several times, you get several "pages" of graphics
output.

Is there an eqivalent in R, please?

R version 2.2.1 windows

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] (no subject)

2006-01-09 Thread Erin Hodgess
Dear R People:

I am trying to build a package (yet again!)

I have both PCTex and WinEdt.  I want the *.tex files to use WinEdt.  How
should I set that, please?  Just in the path?

Also, where would I get Rd.sty, please?

Thanks,
R Version 2.2.1 Windows
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] exporting methods/classes

2006-01-07 Thread Erin Hodgess
Dear R People:

I'm still struggling with sending methods and classes as part of 
creating a new package.

Where does the .onLoad function go?  Within R itself or in a file
in one of the new package directories?


Here are my latest efforts:


Here's the last part of the woof1-Ex.Rout

> library('woof1')
Error in loadNamespace(package, c(which.lib.loc, lib.loc), 
keep.source = keep.source) : 
in 'woof1' classes for export not defined: dog
Error: package/namespace load failed for 'woof1'
Execution halted



Here's the NAMESPACE
importFrom(graphics,plot)
exportClasses("dog")
exportMethods("plot","show")


thanks yet again,
Sincerely,
Erin 
mailto: [EMAIL PROTECTED]

__
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


[R] sending methods to a new package

2006-01-07 Thread Erin Hodgess
Dear R People:

When creating a package, how do you include new methods and classes, 
please?

I'm using the pacakge.skeleton command as a starting point.

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] packages and tex files

2006-01-07 Thread Erin Hodgess
Dear R People:

I am trying to build a package (yet again!)

I have both PCTex and WinEdt.  I want the *.tex files to use WinEdt.  How
should I set that, please?  Just in the path?

Also, where would I get Rd.sty, please?

Thanks,
R Version 2.2.1 Windows
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] S3 vs. S4

2006-01-01 Thread Erin Hodgess
Dear R People:

Here is an answer to my own question:

I looked on regular google and found the  following:

http://www.biostat.jhsph.edu/~rpeng/R-classes-scope.pdf

It's great!

Thanks to Prof. Peng!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] S3 vs. S4

2006-01-01 Thread Erin Hodgess
Dear R People: 

Could someone direct me to some documentation on the
difference between S3 and S4 classes, please?

For example, why would a person use one as opposed to another?
Maybe pros and cons of each?

Thanks in advance!

R Version 2.2.0 (I'm downloading the new one this afternoon!) Windows.

Happy New Year!


Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] off topic A4 paper

2005-12-27 Thread Erin Hodgess
Dear R People:

Please excuse the off topic question.

What are the dimensions of A-4 Paper, please?

Actually, the question should read, "how do I set up a LaTex file
to fix A-4 paper, please?"

Thanks much!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] setting up a matrix structure

2005-12-23 Thread Erin Hodgess
Dear R People:

I have an n x (nm) matrix.

In the first row, there will be n ones, followed by n(m-1) zeros.
In the second row, there will be n zeros, n ones, and the rest zeros.
In the third row, 2n zeros, n 1 and the rest zeros.
.
.
.
In the nth row, n(m-1) zeros and n ones.

My question:  how can I do this elegantly and efficiently, please?

A loop will work just fine, but there must be a better way, please.

Thanks for any help!

R Version 2.2.0, Windows.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] library(its) problem

2005-11-30 Thread Erin Hodgess
Dear R People:

I wanted to use the package "its" this afternoon.

I'm using R Version 2.2.0 for Windows.

I was able to install the package, but ran into trouble at
the "library" command.  Here is the output:

> library(its)
Loading required package: Hmisc
Hmisc library by Frank E Harrell Jr

Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview')
to see overall documentation.

NOTE:Hmisc no longer redefines [.factor to drop unused levels when
subsetting.  To get the old behavior of Hmisc type dropUnusedLevels().

Attaching package: 'Hmisc'


The following object(s) are masked from package:stats :

 ecdf 

Error in lazyLoadDBfetch(key, datafile, compressed, envhook) : 
ReadItem: unknown type 241
In addition: Warning message:
package 'its' was built under R version 2.3.0 
Error: package/namespace load failed for 'its'

Is there a new version 2.3.0, please>

Thanks for any help!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] TRAMO-SEATS confusion?

2005-10-15 Thread Erin Hodgess
Dear R People:

When looking at the previous postings regarding TRAMO-SEATS,
I am somewhat puzzled.

Is it true that we CANNOT replicate TRAMO-SEATS because of 
licensing or ownership issues, please?

If not, would anyone be interested in an R version of it, please?

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] lm.ridge

2005-10-08 Thread Erin Hodgess
Dear R People:

I have a question about the lm.ridge function, please.

In the example, there is one set of output values in the "select"
function but another in the comment section.

Am I missing something please?


R Version 2.1.1 Windows

Thanks,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] C program

2005-09-30 Thread Erin Hodgess
Dear R People:

I have R Version 2.1.1. for Windows in binary form.

I would like to look at the C code for massdist. It is part
of the density function.

How would I access this, please?

Thank you very much!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] lme, fixed and random

2005-08-14 Thread Erin Hodgess
Dear R People:

I need to set up an lme.  I have logratio as my response var,
range, and I(range^2) as the fixed variables.

The random effects vars are xa1 through xa24.

How do I set up the lme statement, please?

I tried with 
lme(logratio ~ range + I(range^2), random=fmla)

is an as.formula statement with the xa1 throught xa24 var with a leading

Any suggestions, please


Thanks,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
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


[R] write.foreign and SPSS

2005-07-05 Thread Erin Hodgess
Dear R:

In the foreign library, there is a function "write.foreign".

When this is used to write to an SPSS file, there are 
actually 2 files as output: a data file and a code file.

How would you coordinate these to become an SPSS sav file, 
please?

Thanks so much!

R Version 2.1.0 Windows

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
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


[R] intervals and data frames

2005-06-06 Thread Erin Hodgess
Dear R people:

I have a vector which runs from -1 to 1, by .1, inclusively.

Easy to set up.  x <- seq(-1,1,.1)

I then sample 3 numbers from x.
y <- sample(x, 3)

Suppose one of my values is -0.7.  I want to set up an interval
around that
y1 <- pmax(y-0.1,-1)
y2 <- pmin(y+0.1,1)
For the value -.7, the interval will run from -.8 to -.6.
There will be several intervals.

Again, nothing interesting so far.

However, now I want to set up something that I will call
r1.  Essentially, r1 "runs" between -1 and 1 as well.
I want to place a value in r1 between -.8 and -.6 for my interval,
and zeros elsewhere.

I'm trying to use a data frame in which the first column represents
the values from -1 to 1.  The remaining columns are initially set to
zero.  Also, I'm trying to avoid loops.

Any suggestions would be much appreciated.

Thanks in advance,
Sincerely
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] locator()

2005-06-03 Thread Erin Hodgess
Dear Sebastian:

Here is a snippet of code that you may find interesting
for labeling points on the plane:

plane1 <- function(x,main1="") {
  plot(x,main=main1,ylab="  ")
  zz <- locator()
  text(zz$x,zz$y,
   labels=paste("(",round(zz$x,1),
 ",",round(zz$y,1),")",sep=""),
   pos=2,cex=.55)
invisible()
}


Hope this helps!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] Tukey HSD

2005-05-11 Thread Erin Hodgess
Dear R People:

Here is a possible answer to Christophe's problem
>summary(fm1 <- aov(breaks ~ wool + tension, data = warpbreaks))
Df Sum Sq Mean Sq F value   Pr(>F)   
wool 1  450.7   450.7  3.3393 0.073614 . 
tension  2 2034.3  1017.1  7.5367 0.001378 **
Residuals   50 6747.9   135.0
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 
>  TukeyHSD(fm1, "tension", ordered = TRUE)
  Tukey multiple comparisons of means
95% family-wise confidence level
factor levels have been ordered

Fit: aov(formula = breaks ~ wool + tension, data = warpbreaks)

$tension
 difflwr  upr
M-H  4.72 -4.6311985 14.07564
L-H 14.72  5.3688015 24.07564
L-M 10.00  0.6465793 19.35342

>
This is from the Example for TukeyHSD.

It gives you the confidence intervals for the level that you set.

Not p values.

Hope this helps!  Sorry to send to the entire list, but deleted original
message.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] Tukey HSD

2005-05-11 Thread Erin Hodgess
Hi all!

__
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


[R] Windows list of Folders

2005-04-29 Thread Erin Hodgess
Hi Kenneth:

I tried:
list.files(path="c:\\pctexv4\\samples")

and that worked just fine.

Hope this helps!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]



 From: [EMAIL PROTECTED]
 Subject: [R] Windows List of Folders?
 X-BeenThere: r-help@stat.math.ethz.ch



 For windows, how can I list only the folders in some folder?
 I was thinking that dir() and file.info() with isdir==TRUE being something
 that might work.

 These folders or directories are numerically named with no dot extension
 names or other characters.  Typically, these are 3132, 3334, ...

 Here is what I tried.  The last line is where I need more work.

 pData="C:/Myfiles/R/Data/"
 setwd (pData)
 x <- dir(pData, all.files=F)
 y <- file.info(x, x$isdir==T)

 TIA

 Kenneth Ray Hobson, P.E.
 Oklahoma DOT - QA & IAS Manager
 200 N.E. 21st Street
 Oklahoma City, OK  73105-3204

__
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


Re: [R] shading in line plots

2005-04-28 Thread Erin Hodgess
There is a force function in the Base package!

Does that counteract the evil of the try function?

Erin

__
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


[R] Graphing question/possibly lattice/xyplot

2005-03-02 Thread Erin Hodgess
Dear R People:
I have a data frame with the variables calories, sodium and "type", 
where type is either zero or one.

I would like to produce a scatterplot with sodium on the horizontal,
calories on the vertical and have the dots be clear when type is one and
black when type is zero.

It can be done via lines and points, but I was wondering if there is a
better way with lattice graphics.

Thanks in advance,
Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
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


[R] way off topic

2005-01-19 Thread Erin Hodgess
Dear R People:

Here is another off topic question, please:

Does anyone know where to find some archaelogical data (carbon
dating), please?


When I googled, I got reseach papers but no data.


Thanks,

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] fSeries

2005-01-05 Thread Erin Hodgess
Hi!

For the person who asked about the armaFit from the fSeries
library, here is an example:

> library(its)
>  x1 <- priceIts(instrument = c("^ftse"), start = "1998-01-01",
+  quote = "Close")
>  fit <- armaFit(x1 ~ arima(1,1,1))
> fit

Call:
armaFit(formula = x1 ~ arima(1, 1, 1))

Model:
ARIMA(1,1,1) with method: CSS-ML

Coefficient(s):
ar1  ma1  
-0.2562   0.2779  

> 

Hope this helps!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
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


[R] akima

2004-12-06 Thread Erin Hodgess
There is a contributed package called "Akima" which
has the akima function.

R Version 2.0.1
Windows

The akima is from October 2004, so it is up to date.

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] How about a mascot for R?

2004-12-02 Thread Erin Hodgess
How about an R-madillo?

Erin from Texas

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] simulation of Gumbel copulas

2004-11-22 Thread Erin Hodgess
Dear R:

Is there a function or a reference to simulate Gumbel copulas, please?

Thanks in advance!

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]
R version 2.0.1 windows

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] rhyp function from fBasics

2004-11-21 Thread Erin Hodgess
Dear R People:

There is a function from the fBasics library to get the probability
and quantiles for the hyperbolic probability function.

Is there one that will estimate parms of the hyperbolic probability
function from a data set, please?

Thanks in advance!

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]
R Version 2.0.1 windows

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Multiple comparisons

2004-11-15 Thread Erin Hodgess
Someone just asked about multiple comparisons in R
You could look at pairwise.t.test in the stats library
or p.adjust (also in stats)

Hope this helps!

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] dev.print and win.print

2004-09-30 Thread Erin Hodgess
Dear R Users:

Was there an answer to the question about
using dev.print and win.print to print as horizontal = FALSE,
please?

I was working on it and I didn't find the solution.

R 1.9.1 Windows
Thanks,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R/S] question re solution

2004-09-01 Thread Erin Hodgess
Dear R and S People:

First, thank you to so many people for your help to my problem.

Here is the solution:

a <- 0.5*(outer(1:n3,1:n3,function(x,y,n2.){n2. - pmax(x,y)},n2.=n2))

I have one final pesky question, please:
During my experiments, I tried the following:

a <- 0.5*(outer(1:n3,1:n3,function(x,y,n2.=n2){n2. - pmax(x,y)}))
Why doesn't this work please?

thank you!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R/S] strange solution

2004-09-01 Thread Erin Hodgess
Dear R and S People:

I ended up using the "assign" command, and things work in S+.

boot1 <- function(y,method="f",p=1) {
n1 <- length(y)
#n2 <- n1*p
assign("n2",n1*p)
n3 <- n2 - 1
a <- 0.5*(outer(1:n3,1:n3,function(x,y){n2 - pmax(x,y)}))
return(a)
}

thanks for listening!


Sincerely,
Erin H
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R/S] strange

2004-09-01 Thread Erin Hodgess
Dear R and S People:

I have run across something very strange.  Here is a function that I wrote
for R:

boot1 <- function(y,method="f",p=1) {
n1 <- length(y)
n2 <- n1*p
n3 <- n2 - 1
a <- 0.5*(outer(1:n3,1:n3,function(x,y){n2 - pmax(x,y)}))
return(a)
}

and here is the R output:
> y1
[1] 9 8 7 3 6
> source("boot1.R")
> boot1(y=y1,p=4)
  [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [,15] 
[,16] [,17] [,18] [,19]
 [1,]  9.5  9.0  8.5  8.0  7.5  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [2,]  9.0  9.0  8.5  8.0  7.5  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [3,]  8.5  8.5  8.5  8.0  7.5  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [4,]  8.0  8.0  8.0  8.0  7.5  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [5,]  7.5  7.5  7.5  7.5  7.5  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [6,]  7.0  7.0  7.0  7.0  7.0  7.0  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [7,]  6.5  6.5  6.5  6.5  6.5  6.5  6.5  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [8,]  6.0  6.0  6.0  6.0  6.0  6.0  6.0  6.0  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
 [9,]  5.5  5.5  5.5  5.5  5.5  5.5  5.5  5.5  5.5   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
[10,]  5.0  5.0  5.0  5.0  5.0  5.0  5.0  5.0  5.0   5.0   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
[11,]  4.5  4.5  4.5  4.5  4.5  4.5  4.5  4.5  4.5   4.5   4.5   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
[12,]  4.0  4.0  4.0  4.0  4.0  4.0  4.0  4.0  4.0   4.0   4.0   4.0   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
[13,]  3.5  3.5  3.5  3.5  3.5  3.5  3.5  3.5  3.5   3.5   3.5   3.5   3.5   3.0   2.5 
  2.0   1.5   1.0   0.5
[14,]  3.0  3.0  3.0  3.0  3.0  3.0  3.0  3.0  3.0   3.0   3.0   3.0   3.0   3.0   2.5 
  2.0   1.5   1.0   0.5
[15,]  2.5  2.5  2.5  2.5  2.5  2.5  2.5  2.5  2.5   2.5   2.5   2.5   2.5   2.5   2.5 
  2.0   1.5   1.0   0.5
[16,]  2.0  2.0  2.0  2.0  2.0  2.0  2.0  2.0  2.0   2.0   2.0   2.0   2.0   2.0   2.0 
  2.0   1.5   1.0   0.5
[17,]  1.5  1.5  1.5  1.5  1.5  1.5  1.5  1.5  1.5   1.5   1.5   1.5   1.5   1.5   1.5 
  1.5   1.5   1.0   0.5
[18,]  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0   1.0   1.0   1.0   1.0   1.0   1.0 
  1.0   1.0   1.0   0.5
[19,]  0.5  0.5  0.5  0.5  0.5  0.5  0.5  0.5  0.5   0.5   0.5   0.5   0.5   0.5   0.5 
  0.5   0.5   0.5   0.5
> 
which is as it should be.

Now I tried the same thing in S+
> y1
[1] 9 8 7 3 6
> source("boot1.R")
> boot1(y=y1,p=4)
Problem in FUN(rep(X, length(Y)), rep(Y, each = length(X))): Object "n2" not found 
Use traceback() to see the call stack
> 

I have no idea why it works in R but not in S+.

R 1.9.1 for Windows
S+ Version 6.2 for Windows.
Any help is appreciated!

Is this part of the difference in scoping, please?

Sincerely,
Erin M. Hodgess
Associate Professor
Dept. of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] expressions/approximate text

2004-08-26 Thread Erin Hodgess
Please forgive the general posting.

To get the x approximately = y,
please try
text(6,2,expression(x %~~% y))

HTH.

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] priceIts problem

2004-07-01 Thread Erin Hodgess
Dear R People:

In library(its), there is a command priceIts.

There is a problem with this command.  It is returning an error message:

> ibm1 <- priceIts(instrument="ibm",start="1998-01-01",quote="Open")
Error in download.file(url, destfile, method = method, quiet = quiet) : 
cannot open URL 
`http://chart.yahoo.com/table.csv?s=ibm&a=0&b=01&c=1998&d=5&e=30&f=2004&g=d&q=q&y=0&z=ibm&x=.csv'
In addition: Warning message: 
cannot open: HTTP status was `404 Not Found' 
> 


This has been working fine until tonight.

Has anyone else seen this, please?
thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] problem with arima

2004-06-24 Thread Erin Hodgess
Hi Laura!

in your last line, you have myforecast$pred instead of my.forecast$pred

Hope this helps!

If that's not it, try
str(my.list)
str(my.forecast$pred)
and check to see that they are both time series

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]



From: Laura Quinn <[EMAIL PROTECTED]>
Subject: [R] Problem with predict arima


I have fitted an arima(0,0,2) model to my data, and am trying to plot a
forecast for the next 15 time steps, but each time i try I am given the
following error message:

Error in .cbind.ts(list(...), makeNames(...), dframe = dframe, union =
TRUE) :
non-time series not of the correct length

I am calculating as follows:

my.arima<-arima(my.list,order=c(0,0,2))
my.forecast<-predict(my.arima,15)
ts.plot(my.list,my.forecast$pred,my.forecast$pred+2*my.forecast$se,
myforecast$pred-2*my.forecast$se)

my.list has 1 column and 2880 rows...I don't understand why I am getting
this error message - any advice?

Thanks,
Laura

Laura Quinn
Institute of Atmospheric Science
School of the Environment
University of Leeds
Leeds
LS2 9JT

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] off topic publication question

2004-06-08 Thread Erin Hodgess
Dear R People:

Please excuse the off topic question, but I
know that I'll get a good answer here.


If a single author is writing a journal article,
should she use "We performed a test"
or "I performed a test",
please?

I had learned to use "we" without regard to the number
of authors.  Is that true, please?

Thanks for the off topic help.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] cointegration

2004-05-03 Thread Erin Hodgess
Dear R People:

Is there a function for cointegration in any of the libraries, please?

for R Windows, please?

thanks,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] EXTREMELY off topic

2004-05-02 Thread Erin Hodgess
Dear R People:

Someone in the group has a profound statement by Albert Einstein
in his or her signature set.

The statement is something like:  "make things as simple as possible,
but no simpler."

could you please send me the exact quote?
Thanks,
Erin
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] ARIMAX-ARCH

2004-04-29 Thread Erin Hodgess
Please try the 
library(tseries)

There are functions for garch in there.

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R ESS] one more thing.....

2004-04-28 Thread Erin Hodgess
Ok.
R loads up.
But when I try to use 
Ctrl-x-o or any control/escape key
in the minibuffer, 
I get
XEmacs does not own the primary selection

Any ideas, please?
Thanks yet again,
Erin
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R ESS] please disregard prev. message

2004-04-28 Thread Erin Hodgess
Wrong name in init.el 

Sorry,
Erin

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] [R ESS]

2004-04-28 Thread Erin Hodgess
Dear ESS/R People:

I installed ESS as per the directions on the ESS page from
the R-Gui Page.

When I start Xemacs/ESS, the scratch window comes up but
no R.  Also, the special function button do not come up.

Any clues as to what I'm doing wrong, please?
R for Windows


Thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] downloading prob

2004-04-22 Thread Erin Hodgess
Dear R People:

Are there problems with downloading the new R-1.9.0, please?

I've tried several mirrors but I keep getting thrown out.

Is anyone else having this problem, please?

TIA,
Hoping to become R-1.9.0 for Windows.

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] regression and dw

2004-04-16 Thread Erin Hodgess
Dear R People:

Suppose we have a regression model that we will call
y.lm

We run the Durbin Watson test for autocorrelation
and we find that there is positive autocorrelation,
and phi = 0.72, say.

What is our next step, please?  

Do we calculate the following
yprime_t = y_t - 0.72y_t-1,
x1prime_t = x1_t - 0.72x1_t-1,

and so on, and re-fit the linear mode?

I haven't done this in a while.  Just wanted to double check.

Thanks so much!
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] all poss. regression

2004-04-10 Thread Erin Hodgess
Dear R People:

Is there an "all possible subsets" function in regression, please?

Typically, I use the step function.  A student asked me
about the all possibles.

Thanks in advance!

R 1.8.1 Windows

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] AIC

2004-04-08 Thread Erin Hodgess
Hi Bret!

There is a step function and an AIC function in the base package.  Also
there is a logLik function in base as well.

Finally, there is a stepAIC function in MASS

Hope this helps!

Sincerely,
Erin Hodgess
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] off topic time series

2004-04-05 Thread Erin Hodgess
Dear R+ People:

Does anyone know, please:  Would there be any interest in an 
undergraduate time series book (very applied) with R, please?

Or does one alrealy exist (or is in the works), please?

Maybe Kevin Ko-Kang is working on one...

Thanks for any advice,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] off topic state data

2004-04-01 Thread Erin Hodgess
Dear R People:

This is off topic, but this group is amazing:
There is a state object, with all kinds of variables about
US states.  However, the numeric data is from 1977.

Does anyone know of a similar data set with more recent data, please?

Thanks in advance,
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] splitting a character vector

2004-03-28 Thread Erin Hodgess
Dear R People:

Suppose I have the following;

xa <- c("There are 5 dogs")

I would like to have a new character vector such that
xb[1] is There
xb[2] is are
xb[3] is 5
xb[4] is dogs

Since the original vector has length 1, substring will not work.

Any suggestions would be MOST welcome!

thanks
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

R 1.8.1 for Windows

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] availability of version 1.9.0?

2004-03-27 Thread Erin Hodgess
Dear R People:

When will version 1.9 (for Windows) be ready, please?

My reason for asking:  there is an interesting library from
Bioconductor called tkWidgets.  However, it will only
work with version 1.9.0 or higher.

Are there ways around this, or should I just be patient?

Thanks so much in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R][S] library question

2004-03-24 Thread Erin Hodgess
Dear R and S+ People:

Is it possible to take one of the R libraries and put it
into S+ please?

R Windows XP 1.8.1
S+ Version 6.2

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] another date conversion

2004-03-22 Thread Erin Hodgess
Dear R People
Here is an interesting problem:

> library(pastecs)
> a <- 1:100
> b <- daystoyears(a,datemin="1/1/2003",dateformat="m/d/Y")
> b
  [1] 2002.999 2003.002 2003.005 2003.008 2003.010 2003.013 2003.016 2003.018 2003.021 
2003.024 2003.027 2003.029 2003.032
 [14] 2003.035 2003.038 2003.040 2003.043 2003.046 2003.049 2003.051 2003.054 2003.057 
2003.060 2003.062 2003.065 2003.068
 [27] 2003.070 2003.073 2003.076 2003.079 2003.081 2003.084 2003.087 2003.090 2003.092 
2003.095 2003.098 2003.101 2003.103
 [40] 2003.106 2003.109 2003.112 2003.114 2003.117 2003.120 2003.123 2003.125 2003.128 
2003.131 2003.133 2003.136 2003.139
 [53] 2003.142 2003.144 2003.147 2003.150 2003.153 2003.155 2003.158 2003.161 2003.164 
2003.166 2003.169 2003.172 2003.175
 [66] 2003.177 2003.180 2003.183 2003.185 2003.188 2003.191 2003.194 2003.196 2003.199 
2003.202 2003.205 2003.207 2003.210
 [79] 2003.213 2003.216 2003.218 2003.221 2003.224 2003.227 2003.229 2003.232 2003.235 
2003.238 2003.240 2003.243 2003.246
 [92] 2003.248 2003.251 2003.254 2003.257 2003.259 2003.262 2003.265 2003.268 2003.270
> require(chron)
Loading required package: chron 

Attaching package 'chron':


The following object(s) are masked _by_ .GlobalEnv :

 dates times 

[1] TRUE
> seq.dates(B,by="days",length=length(b))
  [1] (06/26/75 23:59:01) (06/27/75 23:59:01) (06/28/75 23:59:01) (06/29/75 23:59:01) 
(06/30/75 23:59:01) (07/01/75 23:59:01)
  [7] (07/02/75 23:59:01) (07/03/75 23:59:01) (07/04/75 23:59:01) (07/05/75 23:59:01) 
(07/06/75 23:59:01) (07/07/75 23:59:01)
 [13] (07/08/75 23:59:01) (07/09/75 23:59:01) (07/10/75 23:59:01) (07/11/75 23:59:01) 
(07/12/75 23:59:01) (07/13/75 23:59:01)
 [19] (07/14/75 23:59:01) (07/15/75 23:59:01) (07/16/75 23:59:01) (07/17/75 23:59:01) 
(07/18/75 23:59:01) (07/19/75 23:59:01)
 [25] (07/20/75 23:59:01) (07/21/75 23:59:01) (07/22/75 23:59:01) (07/23/75 23:59:01) 
(07/24/75 23:59:01) (07/25/75 23:59:01)
 [31] (07/26/75 23:59:01) (07/27/75 23:59:01) (07/28/75 23:59:01) (07/29/75 23:59:01) 
(07/30/75 23:59:01) (07/31/75 23:59:01)
 [37] (08/01/75 23:59:01) (08/02/75 23:59:01) (08/03/75 23:59:01) (08/04/75 23:59:01) 
(08/05/75 23:59:01) (08/06/75 23:59:01)
 [43] (08/07/75 23:59:01) (08/08/75 23:59:01) (08/09/75 23:59:01) (08/10/75 23:59:01) 
(08/11/75 23:59:01) (08/12/75 23:59:01)
 [49] (08/13/75 23:59:01) (08/14/75 23:59:01) (08/15/75 23:59:01) (08/16/75 23:59:01) 
(08/17/75 23:59:01) (08/18/75 23:59:01)
 [55] (08/19/75 23:59:01) (08/20/75 23:59:01) (08/21/75 23:59:01) (08/22/75 23:59:01) 
(08/23/75 23:59:01) (08/24/75 23:59:01)
 [61] (08/25/75 23:59:01) (08/26/75 23:59:01) (08/27/75 23:59:01) (08/28/75 23:59:01) 
(08/29/75 23:59:01) (08/30/75 23:59:01)
 [67] (08/31/75 23:59:01) (09/01/75 23:59:01) (09/02/75 23:59:01) (09/03/75 23:59:01) 
(09/04/75 23:59:01) (09/05/75 23:59:01)
 [73] (09/06/75 23:59:01) (09/07/75 23:59:01) (09/08/75 23:59:01) (09/09/75 23:59:01) 
(09/10/75 23:59:01) (09/11/75 23:59:01)
 [79] (09/12/75 23:59:01) (09/13/75 23:59:01) (09/14/75 23:59:01) (09/15/75 23:59:01) 
(09/16/75 23:59:01) (09/17/75 23:59:01)
 [85] (09/18/75 23:59:01) (09/19/75 23:59:01) (09/20/75 23:59:01) (09/21/75 23:59:01) 
(09/22/75 23:59:01) (09/23/75 23:59:01)
 [91] (09/24/75 23:59:01) (09/25/75 23:59:01) (09/26/75 23:59:01) (09/27/75 23:59:01) 
(09/28/75 23:59:01) (09/29/75 23:59:01)
 [97] (09/30/75 23:59:01) (10/01/75 23:59:01) (10/02/75 23:59:01) (10/03/75 23:59:01)
> 




Why is it that the seq.dates values come back as 1975, please?
What am I doing wrong, please?  (I'm sure it's something incredibly simple)

Thanks in advance!

R for Windows 1.8.1

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] integration in symbols

2004-03-21 Thread Erin Hodgess
Dear R People:

Are there any functions for integration in R, please?
Not integrateThat return a numeric value.
I mean symbolic integration...the moral equivalent
of D and deriv, please.

Thanks in advance!

Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: [EMAIL PROTECTED]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


  1   2   >