Re: [R] How can R be used to solve algebra equations?

2007-11-29 Thread Daniel Lakeland
me this expression solution? I know there is uniroot, but here I > want the "expression" not the value, because I do not have values for y and > z. I suggest the use of maxima rather than R. The two complement each other very nicely: http://maxima.sf.net -- Daniel Lakeland [EMA

Re: [R] Percentiles in R

2007-09-11 Thread Daniel Lakeland
nterpolates and returns 1.518 2) If you need an element of the data set, you could simply do something like (sort(x))[round(NROW(x) * p)] -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org mail

Re: [R] beginner's questions ... sorry

2007-09-13 Thread Daniel Lakeland
ct R to save my changes when I close the editing > session ? write.table write.csv or my favorite way of keeping data well organized is RSqlite or sqldf (related) -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-h

Re: [R] Graphics and LaTeX documents with the same font

2007-09-28 Thread Daniel Lakeland
e). Perhaps you have a counter-example? > > Hadley It can be useful to see multiple timeseries on the same x (time) scale but with different y scales for each to see if there are time-lag correlations between different quantities -- Daniel Lakeland [EMAIL PROTE

Re: [R] simulated data using empirical distribution

2007-10-10 Thread Daniel Lakeland
On Wed, 2007-10-10 at 10:13 -0400, Tom Sgouros wrote: > Hello all: > > I'm sure this is a trivial request, but I'm still a beginner at this, > and haven't been able to find it. I need to create simulated data based > on some empirical distributions of a single variable. I've found R > functions

Re: [R] simulated data using empirical distribution

2007-10-11 Thread Daniel Lakeland
tried. Use "fitdistr" from the MASS package. library(MASS) fitdistr(mysample,"gamma") # parameters for your starting point -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org mailing li

[R] specifying models ":" and %in% and soforth

2007-10-14 Thread Daniel Lakeland
one can clarify what (if any) the differences are. Thanks, Dan -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] Bootstrapping Contrasts for Repeated Measures ANOVA

2007-10-16 Thread Daniel Lakeland
lation with factor level 2. Compute the difference in averages. This is a single sample of the "difference of averages". Do this procedure several thousand times. You will have a bootstrap distribution of the difference in averages. Am I missing some other issue? -- Daniel Lakeland [

Re: [R] help with nls and Hill equation

2007-10-16 Thread Daniel Lakeland
ce... These things almost always benefit from trying various starting points, and from doing some analysis to determine a good range of starting points. -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org

Re: [R] Need some help

2007-10-16 Thread Daniel Lakeland
of the axis. I think what he wants is the number of times that the current sample is different from the previous sample. (ie. imagine heads = 1 and tails = -1 how many times does the sequence change sign?) -- Daniel Lakeland [EMAIL PROTECTED] http://www.street

Re: [R] Calculating confidence in an estimate including number of trials?

2007-10-16 Thread Daniel Lakeland
rm can be used like your table of area under the normal curve. To account for size of sample you have to scale the variance appropriately according to the theory you have learned in your course. -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists

Re: [R] Calculating confidence in an estimate including numberof trials?

2007-10-16 Thread Daniel Lakeland
(19, mean=20, > sd=10/sqrt(16)) > [1] 0.3108435 You have calculated the probability that your sample estimate of the mean will be between 19 and 21, in your previous post you asked for 10 to 21, but I am guessing it was simply a typo. In any case, it looks like you are on the right track. -

Re: [R] Multi-objective optimization

2007-10-17 Thread Daniel Lakeland
g(best.x,y)} and use optim to optimize this new function varying only y. Hope this helps. -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] 2-way Factorial with random factors

2007-10-26 Thread Daniel Lakeland
case we think of a particular soil and weather and soforth causing a deviation from the trend, and we think of that particular soil and weather also causing a deviation from the between species trend in the last model. As I say, I'm not an expert in this field, so I would be very glad if someone

Re: [R] Homework help: Is this how CIs of normal distributions are computed?

2007-10-31 Thread Daniel Lakeland
an transforming from the standardized normal by hand. qnorm(c(.025,.975),mean=mean(x100),sd=sd(x100)/sqrt(length(x100))) -- Daniel Lakeland [EMAIL PROTECTED] http://www.street-artists.org/~dlakelan __ R-help@r-project.org mailing list https://stat.eth