Displaying 20 results from an estimated 1000 matches similar to: "R Commander QQ Plot with triangular distribution"
2008 May 23
1
Question about Runuran (Triangular Distribution)
The Runuran package includes a simulation for the Triangular Distribution,
urtriang. But I didn't find an analogue of the q* functions (rnorm - qnorm,
runif - qunif), that would invert the CDF (?uqtriang).
Are there any such functions?
Alberto Monteiro
2009 Feb 08
2
how to make this qq plot in lattice and/or ggplot2
Hi Group,
Here is some data.
p <- runif(1000) # sample data
groups <- rep(c(1,2),each=500) #conditioning variable
mydata <- cbind(p,groups)
n <- length(p)
u <- (1:n)/(n + 1) # uniform distribution reference for qqplot
logp <- -log(p,base=10)
logu <- -log(u,base=10)
qqplot(logp,logu)
How can I make the above qqplot in lattice and/or ggplot2. The sample
is uniform, and I take
2009 Mar 31
1
Deriving Samples from specific, not implemented PDF for a QQ-Plot
Dear All,
this is my first post to the R-help, so please don't be too strict.
My problem concerns a QQ-Plot:
I want to show how well empirical samples match with a theoretical
distribution. The theoretical distribution has got several parameters, but I
made it to fit via ML.
Anyway, the theoretical function gives me the density for a given data point
x. As far as I'm
2009 Sep 17
2
QQ plotting of various distributions...
Hello!
I am trying with this question again:
I would like to test few distributional assumptions for some behavioral
response data. There are few theories about true distribution of those
data, like: normal, lognormal, gamma, ex-Gaussian
(exponential-Gaussian), Wald (inverse Gaussian) etc. The best way would
be via qq-plot, to show to students differences. First two are trivial:
qqnorm(dat$X)
2010 Mar 27
5
producing a QQ plot.
Hello everyone I'm a beginner in Stats and R, I'm using R 2.10.1. I need to
create a multivariate qq plot, there is 8 variable group with each has 55
number of input. An example of what I did so far, just to get my point out:
> data=read.csv(file.choose(),header=T)
> data
country village group av_expen P2ary_ed no_fisher
1 Cook Islands Aitutaki D
2012 Feb 17
1
QQ plot
Hello,
I am having two data set original and predicted.
I want to dind QQ-plot fot it.
I tried in following manner :
>qq(original~predicted)
and error was :
Error in qq.formula(o ~ p) : y must have exactly 2 levels
There is an option "qtype" which dosent make any difference.
What is the correct way for plotting QQ-plot or am I missing something.
--
Amar Kumar Nandan
2010 Aug 02
1
QQ-plot – Axes
I would like to change the position of the major tick marks in my qq-plot?
Right now the ticks are set at 5.5, 6.0, 6.5 and 7.0.
I would like them to be at 5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 6.8 and 7.0. So I
would have to remove some of the present ticks. So far I can only add ticks
to the plot with:
axis(1,at=c(5.4, 5.6, 5.8, 6.0, 6.2, 6.4, 6.8, 7.0))
Is there a solution to my
2011 Apr 30
4
QQ plot for normality testing
Hi all,
I am trying to test wheater the distribution of my samples is normal with QQ plot.
I have a values of water content in clays in around few hundred samples. Is the code :
qqnorm(w) #w being water content
qqline(w)
sufficient?
How do I know when I get the plots which distribution is normal and which is not?
Thanks, m
[[alternative HTML version
2009 Sep 12
2
Triangular distribution for kernel regression
Hello,
I am trying to get fitted/estimated values using kernel regression and a
triangular kernel. I have found packages that easily fit values from a
kernel regression (e.g. ksmooth) but do not have a triangular distribution
option, and density estimators that have triangular distribution options
that I can't seem to use to produce estimated values (e.g. density). Any
help is appreciated.
2011 May 13
2
How to store a triangular matrix
Hello, I want to create a triangular matrix and only keep the lower triangle entries without having to allocate memory for the whole matrix, is there any way I can do something like
A<-matrix(data, nrow=50)
but for a triangular matrix?
Thanks
ERV
[[alternative HTML version deleted]]
2011 Nov 15
1
Convert full matrix back to lower triangular matrix
Given a vector;> ab = seq(0.5,1, by=0.1)> ab[1] 0.5 0.6 0.7 0.8 0.9 1.0
The euclidean distance between the vector elements is given by the lower triangular matrix > dd1 =
dist(ab,"euclidean")> dd1 1 2 3 4 52 0.1 3 0.2 0.1 4 0.3 0.2 0.1 5 0.4 0.3 0.2 0.1 6 0.5 0.4 0.3 0.2 0.1
Convert the lower triangular matrix to a full
2013 Jun 16
1
trying to fit a thin plate spline to a triangular plot
Hi
Has anyone tried to fit a thin plate spine to a triangular plot before? I'm having trouble working out a piece of code to make it possible with three axes. I have done it before with two axes.
I've found a package I prefer that makes triangular plots (plotrix) using the triax.plot() function. An example of some data and the plot follows:
graph.data<-data.frame(a=c(9,6.2,
2005 Oct 02
2
convering upper triangular matrix into vector
Hi
I have two symmetrical distance matrices and want to compute the correlation
coefficient between them (after turning them into vectors).
Is there a way of selecting only the upper triangular part of each matrix, then
convert this into a vector so I can compute the correlation?
Many Thanks
Eleni Rapsomaniki
2010 Dec 22
2
Fitting a Triangular Distribution to Bivariate Data
Hello,
I have some xy data which clearly shows a non-monotonic, peaked
triangular trend. You can get an idea of what it looks like with:
x<-1:20
y<-c(2*x[1:10]+1,-2*x[11:20]+42)
I've tried fitting a quadratic, but it just doesn't the data-structure
with the break point adequately. Is there anyway to fit a triangular
or 'tent' function to my data in R?
Some sample code
2002 Dec 09
0
triangular PDF
Howdy,
I couldn't find any way to generate deviates from a triangular
PDF in R, so here's a function to do so.
-Andy
rtri <- function(n=1,min=0,max=1,ml=0.5) {
# Return independent random deviates from a
# triangular distribution.
# n is number of deviates requested
# min, max are lower and upper limits of r.v. range
# ml is the most-likely value
2005 Mar 01
2
almost lower triangular matrices
I have output from a program which produces a distance matrix I want to
read into a clustering program in R.
The output is a .txt file and is 'almost' lower triangular in the sense
that it is just the triangle below the diagonal.
So for example a 4-by-4 distance matrix appears as,
1
2 3
4 5 6
i.e. it looks like a lower triangular of a 3-by3.
I thought I might be able
2005 Jul 12
2
simple question: reading lower triangular matrix
Dear list,
I will like to learn how to read a lower triangular matrix in R. The
input file *.txt have the following format:
A B C D E
A 0
B 1 0
C 2 5 0
D 3 6 8 0
E 4 7 9 10 0
How this can be done?
Thanks in advance for your help
Rog??rio
2007 Jul 05
1
generating lower triangular matrix
Hi,
I would like to generate below triangular matrix for some a.
0
0
0
0
0
0
1
0
0
0
0
0
a
1
0
0
0
0
a^2
a
1
0
0
0
a^3
a^2
a
1
0
0
a^4
a^3
a^2
a
1
0
What's an efficient way to do this? (this matrix being KxK, K very
large)
Thanks
Zava
--------------------------------------------------------
This is not an offer (or solicitation of an offer) to buy/se...{{dropped}}
2012 Feb 20
1
Triangular Test
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?...
Nom : non disponible
URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20120220/1e5ae2c7/attachment.pl>
2012 Feb 10
1
making multiple lines using qqplot
Hi Everyone,
I want to make 3 lines on the same graph (not as subplots, all in the same
window, one on top of each other) and I want them to be quantile-quantile
plots (qqplot). Essentially, I am looking for the equivalent of Matlab's
"hold on" command to use with qqplot. I know I can use 'points' or 'lines',
but these do not give me a qqplot (only appear to work