Re: [R] source() function and crash of R!

2004-02-15 Thread Graciliano M. P.
Do read the posting guide. I bet you get an error message, not a crash, and that you are running R in non-interactive mode: not that you have told us what you are doing in any detail. No, actually the R interpreter goes out, like if the process was killed! Note that if we open R and type

Re: [R] Beginner's question about t.test()

2004-02-15 Thread pallier
Pramote Khuwijitjaru wrote: Is it possible to use t.test() do t-test when I have only two means, sample size, two standard deviations ? (no raw data). When you type 't.test.default', you get the source code of the t.test function. If you are conducting a t.test with var.equal=T, paired=F,

Re: [R] source() function and crash of R!

2004-02-15 Thread Uwe Ligges
Graciliano M. P. wrote: Do read the posting guide. I bet you get an error message, not a crash, and that you are running R in non-interactive mode: not that you have told us what you are doing in any detail. No, actually the R interpreter goes out, like if the process was

Re: [R] help on compilation of R help file in LaTeX format.

2004-02-15 Thread Uwe Ligges
Jinsong Zhao wrote: Dear all, I hope to know how to compile the R help file in LaTeX format under Windows 2000. The TeX/LaTeX system is TeXLive 2002, and the version of R is 1.8.x. See ?help, in particular look for its argument offline and the section Details: If 'offline' is

Re: [R] How to configure ess-5.2.0beta3-1.i586.rpm, Xemacs and SuSE 9.0?

2004-02-15 Thread Detlef Steuer
Hi! The rpm is for emacs, not Xemacs. ess is, as far as I know, contained in the sumo package for Xemacs. (I'm no user of Xemacs, so no guarantee) Hth detlef On Fri, 13 Feb 2004 19:31:55 -0600 Barnet Wagman [EMAIL PROTECTED] wrote: I'm trying to get R and ESS to work with Xemacs on a newly

Re: [R] father and son heights

2004-02-15 Thread Spencer Graves
Do you have this data set in any form? If yes, do you have it in any electronic form? If yes, have you tried following relevant suggestions in the manual on R Data Import/Export? [I got this as a hot link from within R 1.8.1 help.start().] hope this helps. spencer graves Ann

Re: [R] Beginner's question about t.test()

2004-02-15 Thread Pramote Khuwijitjaru
From: pallier [EMAIL PROTECTED] To: Pramote Khuwijitjaru [EMAIL PROTECTED] Subject: Re: [R] Beginner's question about t.test() Date: Sun, 15 Feb 2004 10:48:05 +0100 Pramote Khuwijitjaru wrote: Dear All, I am doing some exercise in statistics textbook on comparison of two experimental means. Is

[R] linear regression and chi square test of data with standard deviation

2004-02-15 Thread Fulvio Copex
Hello everyone, I know that to calculate the linear regression between x and y, I have to use the function lm. But how to do if x and y have a standard deviation like in the following example? How to compute the chi square test? Thank you, E. example: x äx 5 2 13 4 17 4 23 6 y äy 6.3

[R] linear regression of data with standard deviation

2004-02-15 Thread Fulvio Copex
Hello everyone, I know that to calculate the linear regression between x and y I have to use the function lm. But how to do if x and y have a standard deviation like in the following example? How to compute the chi square test in this case? Thank you, Fulvio. example: x +- dx 5 2 13

Re: [R] linear regression of data with standard deviation

2004-02-15 Thread Spencer Graves
I'm not certain what you are asking, but I wonder if you want errors in X regression. If yes, have you considered the sem package (structural equations modeling)? If you don't already have this package, you can get it using the download.packages under Windows or by following the

Re: [R] father and son heights

2004-02-15 Thread Ann Loraine
Actually, no. It's a data set that is used to teach Pearson's correlation coefficient in a popular statistics textbook - Statistics by Freedman, Pisani, et al. It contains over a thousand measurements of son's and their father's heights. I would like to find it in electronic form so that I

[R] manova() with a data frame

2004-02-15 Thread Michael Friendly
I'm trying to learn to use manova(), and don't understand why none of the following work: data(iris) fit - manova(~ Species, data=iris) Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) : incompatible dimensions fit - manova(iris[,1:4] ~ Species, data=iris) Error

Re: [R] father and son heights

2004-02-15 Thread Marc Schwartz
On Sun, 2004-02-15 at 12:37, Ann Loraine wrote: Actually, no. It's a data set that is used to teach Pearson's correlation coefficient in a popular statistics textbook - Statistics by Freedman, Pisani, et al. It contains over a thousand measurements of son's and their father's heights.

Re: [R] father and son heights

2004-02-15 Thread Gabor Grothendieck
Faraway's book titled Practical Regression and Anova using R, with full text available online at: http://cran.r-project.org/doc/contrib/Faraway-PRA.pdf refers to a data set, stat500, which compares midterm and final grades. It can be used to illustrate similar concepts. A google search

Re: [R] father and son heights

2004-02-15 Thread Rolf Turner
Ann Loraine wrote: I'm looking for Pearson's father and son height data. ... It's a data set that is used to teach Pearson's correlation coefficient in a popular statistics textbook - Statistics by Freedman, Pisani, et al. It contains over a thousand measurements of son's and

Re: [R] father and son heights

2004-02-15 Thread Chuck Cleland
Marc Schwartz wrote: ... Found it here: http://stat-www.berkeley.edu/users/juliab/141C/pearson.dat It consists of 1,078 pairs of father (col 1) and son (col 2) paired data. Used to not only show Pearson correlation, but also used to demonstrate Regression to the Mean, or as Galton called it,

Re: [R] father and son heights

2004-02-15 Thread Rolf Turner
Marc Schwartz wrote: Found it here: http://stat-www.berkeley.edu/users/juliab/141C/pearson.dat It consists of 1,078 pairs of father (col 1) and son (col 2) paired data. Used to not only show Pearson correlation, but also used to demonstrate Regression to the Mean, or as Galton called

Re: [R] manova() with a data frame

2004-02-15 Thread Chuck Cleland
The details section of the help for lm() suggests the response should either be a numeric vector or a matrix. And the help for aov() says: Fit an analysis of variance model by a call to 'lm' for each stratum. hope this helps, Chuck Cleland Michael Friendly wrote: I'm trying to learn to

[R] panel data

2004-02-15 Thread Luca De Benedictis
Dear R-friends, has anyone developed a package for panel data or even dynamic panel data? Thanks Luca __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] Maximum likelihood estimation in R

2004-02-15 Thread Edward Sun
Dear Sir, I am a new user of R and I am doing a tast, which is: find the maximum likelihood estimate of the parameter of Gaussian distribution for generated 100 numbers by using x=rnorm(100, mean=3, sd=1). I tried to use following Maximum Likelihood function fn-function(x)

Re: [R] father and son heights

2004-02-15 Thread Gabor Grothendieck
According to: http://www.spss.com/research/wilkinson/Publications/galton.pdf there are actually two father/son height datasets. One was collected by Galton. Apparently Pearson used that data but also collected and used a second dataset together with Alice Lee in roughly the same time

Re: [R] Maximum likelihood estimation in R

2004-02-15 Thread DivineSAAM
Hello, Use x=rnorm(100, mean=3, sd=1) library(MASS) fitdistr(x, normal) mean sd 2.9331 0.99673982 (0.09967398) (0.07048015) Hope this helps, Shrieb __ [EMAIL PROTECTED] mailing list

Re: [R] Maximum likelihood estimation in R

2004-02-15 Thread Spencer Graves
If, however, you are more interested in general methods for maximizing a likelihood function, I suggest you look at optim, work the examples on the help page, etc. hope this helps. spencer graves [EMAIL PROTECTED] wrote: Hello, Use x=rnorm(100, mean=3, sd=1) library(MASS)

Re: [R] panel data

2004-02-15 Thread Spencer Graves
How does structural equation modeling relate to analysis of panel data? If structural equation modeling would help, then you may be interested in the sem package obtainable via download.packages('sem') from R 1.8.1 under windows (or see the FAQs). hope this helps, spencer graves

RE: [R] Maximum likelihood estimation in R

2004-02-15 Thread Liaw, Andy
Or: library(mle) ?mle (which, BTW, uses optim() underneath.) Also, for those not aware of it, fitdistr(x, normal) just computes mean(x) and (n-1)/n * var(x) and return them. (I can't imagine any reason to do otherwise for normal distribution.) Best, Andy From: Spencer Graves If,

Re: [R] father and son heights

2004-02-15 Thread Gabor Grothendieck
I just noticed that the faraway package on CRAN contains the stat500 dataset so you can just install that in the usualy way, rather than googling around for faraway.zip . Date: Sun, 15 Feb 2004 14:27:52 -0500 (EST) From: Gabor Grothendieck [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL

[R] unbalanced

2004-02-15 Thread Don Driscoll
G'day, The following code gives a two-way factorial anova, which is completely balanced. However when model.tables is called, the response is: Design is unbalanced - use se.contrasts for se's, and SEs are not available. Why doesn't R think my design is balanced and how do I convince it that it

Re: [R] Beginner's question about t.test()

2004-02-15 Thread Pramote Khuwijitjaru
From: Rolf Turner [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] Beginner's question about t.test() Date: Sun, 15 Feb 2004 11:23:26 -0400 (AST) (a) You don't really need/want to look at t.test.default; your own code --- to do t tests based on summary statistics