Displaying 20 results from an estimated 200 matches similar to: "Quantiles and QQ plots"
2007 Nov 30
6
Generating a value
How do I generate a value in R from a poisson distribution with mean 20?
Thanks!
--
View this message in context: http://www.nabble.com/Generating-a-value-tf4922234.html#a14086120
Sent from the R help mailing list archive at Nabble.com.
2012 Apr 25
1
Using apply() with a function involving ode()
Hello,
I am trying to get the output from the numerical simulation of a system
of ordinary differential equations for a range of values for three
parameters. I am using the ode() function (deSolve package) to run the
numerical simulation and apply() to run the simulation function for each
set of parameter values. I am having trouble getting the apply()
function to work.
Here is an
2003 Jan 21
1
Orders of terms in formulae
Hi,
Given that R reports Type I sums of squares, isn't it a bit anachronistic
that it re-orders terms in formulae?
> d <- expand.grid(y=rnorm(8),
+ A=factor(c(1,2)),
+ B=factor(c(1,2)),
+ C=factor(c(1,2)))
> summary(aov(y ~ A+B+A:B+C,data=d))
Df Sum Sq Mean Sq F value Pr(>F)
A 1 8.294e-34 8.294e-34 1.027e-33 1
2002 Jul 16
2
ANOVA-like tests of geometrically-distributed data
I have a statistical problem which has given me no end of grief recently,
and am posting here in the hope that somebody can give me a straight
answer. I'm a IT postgrad, not a statistician, so people may have to
speak really slowly and clearly for me to get it :)
I am collecting simulation data, and the results are geometrically
distributed (or approximately so). From what I can gather
2002 Jun 06
1
sampling from data frame
Hello,
after searching through the archives and
not finding a thread that answers this question,
I thought I'd pass it on to the list.
Given a data frame and given a factor variable
that assigns a class to each case in the data frame,
what is the most efficient way to sample
a given number of cases from each class?
I've found a roundabout solution that works as follows:
for each class:
2002 May 17
2
Blue Book
I came across a very cheap of the infamous blue book - The New S Language
(1988). Is this book still relevant to modern S or R or am I wasting my
time?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the
2002 Dec 12
4
sum a list of vectors
In Mathematica there is a neat feature, where you can change the head of a list from "list" to say "+" and obtain a sum of the list elements.
I can't find a way to sum a list of vectors of same length or list of matrices of the same dimension and was curious if something like that exists in R. do.call("+",list) doesn't work because "+" accepts only
2002 May 14
5
Question
Hello. I want to use "for".
I have a matrix called "mat" that has got 100 rows.
I want to take the line 1 and make
a1<-which(mat[1,]==1)
After this I want to take the second row and make
a2<-which(mat[2,]==1)
and so on until I arrive at row 100.
I want to make it automatic for the 100 rows and so I wrote:
for(i in 1:nrow(mat)){
ai<-which(mat[i,]==1)
}
1999 Apr 14
2
No LOGLM coefficients
Dear R-helpers,
Im trying to fit a Log-linear model on a dataset with bird counts from
60 sites over 14 years for 12 months each (factors for the models). One
of the aims is to predict the missing values in this dataset with model
predictions.
Ive first tried to work with GLM's, that worked fine except for models
with one or more interaction-terms. The GLMs run, run .. for hours. So I
2005 Apr 17
3
generalized linear mixed models - how to compare?
Dear all,
I want to evaluate several generalized linear mixed models, including the null
model, and select the best approximating one. I have tried glmmPQL (MASS
library) and GLMM (lme4) to fit the models. Both result in similar parameter
estimates but fairly different likelihood estimates.
My questions:
1- Is it correct to calculate AIC for comparing my models, given that they use
2002 Oct 17
3
Non-central distributions
Hi Folks,
I note that, while the "chisq" functions
dchisq(x, df, ncp=0, log = FALSE)
pchisq(q, df, ncp=0, lower.tail = TRUE, log.p = FALSE)
qchisq(p, df, ncp=0, lower.tail = TRUE, log.p = FALSE)
rchisq(n, df, ncp=0)
all have a slot for the non-centrality parameter "ncp", of
the functions for the t and F distributions:
dt(x, df, log = FALSE)
2002 Jun 05
5
hairy indexing problem
I've got a data frame that looks like this:
subject foo bar
2 1.7 3.2
2 2.3 4.1
3 7.6 2.3
3 7.1 3.3
3 7.3 2.3
3 7.4 1.3
5 6.2 6.1
5 3.4 6.9
...
That is, I've got multiple rows per subject. I need to compute
summaries within categories where the subject has the same number
2007 Jan 29
2
Need to fit a regression line using orthogonal residuals
I'm trying to fit a simple linear regression of just Y ~ X, but both X
and Y are noisy. Thus instead of fitting a standard linear model
minimizing vertical residuals, I would like to minimize
orthogonal/perpendicular residuals. I have tried searching the
R-packages, but have not found anything that seems suitable. I'm not
sure what these types of residuals are typically called
2003 Mar 07
1
Type IV sum of squares
To anyone who can help:
I am trying to do an analysis of variance with a very unbalanced design and a few empty cells. How do I get R to use type III and more importantly type IV sums of squares?
Thanks
Deven Hamilton
Department of Sociology
University of Washington
2006 Jun 28
1
superimposing histograms
I want to superimpose histograms from three populations onto the same graph,
changing the shading of the bars for each population. After consulting the
help files and the archives I cannot find out how to do this (seemly) simple
graph. To be clear, I want
- a single x axis (from -3 to 18)
- three groups of bars forming the histograms of each population (they will
not overlap much, but this is
2002 Oct 17
2
Trigamma function
Hey, all
Do you how to calculate the trigamma function, that is
d**2(log(gamma(x))) / dx**2.
The second-order derivative of log(Gamma(x))?
I cannot find it in the R package, and somebody knows who or where to get
such one?
Thanks.
Fred
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
2002 Dec 11
2
ordering x's and y's
Hello ALL:
How do I get R to list all possible orderings of 2 x's and 3 y's? It should
look like this (which rows appear first is unimportant):
x x y y y
x y x y y
x y y x y
x y y y x
y x x y y
y x y x y
y x y y x
y y x x y
y y x y x
y y y x x
Thanks,
ANDREW
2002 Jul 01
2
"_"
If I remember correctly, every time the dreaded "_" arises as an
assignment operator in polite emails, the advantage of last resort cited
in its defence is that it is only a single (albeit shifted) keystroke. I
can only speak for the excellent NEdit, but it is a trivial task to assign
some otherwise unloved key (my favorite is that funny accent at the left
of the digit row) to
2002 Oct 23
1
vectorizing a function
Dear R-xperts
I have just written a little hypergeometric function, included below
[the hypergeometric function crops up when solving a common type of
ODE].
It works fine on single values of the primary argument z, but
vectorizing it is getting confusing.
The best I have come up with so far just tests for z being longer than
1 and if so, uses sapply() recursively. This is fine, except that it
2002 Jul 26
3
Fisher r-to-z transformation
Hi everyone,
I want to use the Fisher r-to-z transformation as part of a hypothesis
test of r. I can't find an R function that can do that. Am I missing
it?
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.org | http://www.zope.com
W. St. Paul, MN | | http://slashdot.org
wilson at visi.com | <dtml-var