Displaying 20 results from an estimated 1000 matches similar to: "Which distribution best fits the data?"
2007 Oct 31
3
thicker axis in levelplot
Dear R-help community,
I need to find out how to make the black axis line around my plot thicker in
levelplot, I cannot find the correct command in ?levelplot or ?par - or if it is
there I cannot get it to work - any help would be more that appreciated!
Here's an example script - I would want the code for making the axis bordering
the plot thicker:
x<- seq(pi/4, 5*pi,length=100)
2006 Dec 11
3
upside down image/data
Dear R-community,
I am looking for some simple advice - I have a matrix (therefore 2 dimensional)
of global temperature.
Having read R-help I think that when I ask R to image() or levelplot() my matrix
will it actually appear upside down - I think I therefore need to use the line:
> levelplot(temperature.matrix[,ncol(output.temp):1], ........)
to get it looking like it was on the globe due
2007 Jun 06
3
random numbers selection - simple example
Dear R-help,
Which random number generator function would you recommend for simply picking 15
random numbers from the sequence 0-42? I want to use replacement (so that the
same number could potentially be picked more than once).
I have read the R-help archives and the statistics and computing book on modern
Applied statistics with S but the advice seems to be for much form complicated
2006 Dec 12
2
how do you interpolate a gaussian grid to a standard 2.5 degree grid?
Dear R-help community,
I have looked on the R search site and archives but cannot find mention of a way
of interpolating a gaussian distribution of data to a standard 2.5 degree grid.
I have two global dataset and I need to correlate - unfortunately one is a 2.5
degree grid dim[longitude=144,latitude=72] and one is gaussian
dim[longitude=192,latitude=94].
I would rally appreciate hearing
2006 Nov 20
3
problem with loop to put data into array with missing data forsome files
Hi Jenny
If you want a general solution I understand.
However I just downloaded the file fine (as far as I can tell) so you
are welcome to have a copy. I can email it to you if you want.
I do not think your test for NA is valid. i.e
if(test != "NA"){
}
I think you should use
if(is.na(test)){
}
Or something similar.
J
---
John Seers
Institute of Food Research
Norwich
2006 Dec 14
7
loop is going to take 26 hours - needs to be quicker!
Dear R-help,
I have a loop, which is set to take about 26 hours to run at the rate it's going
- this is ridiculous and I really need your help to find a more efficient way of
loading up my array gpcc.array:
#My data is stored in a table format with all the data in one long column
#running though every longitute, for every latitude, for every year. The
#original data is sotred as
2007 Jul 24
3
Overlaying a single contour from a new data array in levelplot
Dear R-Help community,
I am trying to overlay a single contour line over a correlation plot using
levelplot in the lattice package. These are the two arrays:
1) a correlation plot over Africa - so each grid square is a different colour
dependent on correlation - this is in an array: result_cor with dim[465,465]
2) a single contour line from a ***different data source*** - this is from data
2007 Apr 19
1
is there a function to give significance to correlation?
Dear R-Help,
I am trying to find a function that will give me the significance of the
correlation of 2 variables (in the same dimension arrays) correcting for serial
autocorrelation.
How can I view the function cor.test's code? I would like to know a lot more
detail about the function than written in the documentation at
http://finzi.psych.upenn.edu/R/library/stats/html/cor.test.html
to
2006 Nov 23
3
reaccessing array at a later date - trying to write it to file
Dear R-help community
I am trying to write an R object (data.out) to a file in order to re-access it
later and not have to re-load up the array with data every time. Here is the
form of data.out
> data.out <- list(lats=seq(88.542, -88.542, length=94),
lons=seq(0, 360-1.875, length=192),
date=vector(length=nyr*12),
data=array(NA, c(nyr*12, 94*192))
)
I tried
>
2006 Nov 20
2
problem with loop to put data into array with missing data for some files
Dear R-help community,
My main goal of this message is to find a way of skipping a file of a month/year
in a loop that does not exist (and making it's output into an data.out array
would be NA) and moving onto the next year/month in the loop to carry on filling
data.out with real precipitation data.
The situation so far:
I downloaded 50 years worth of GRIB data files from the NCEP data
2007 Mar 16
1
Problem installing R onto Solaris 2.10 system - need advice!!!!!
Dear R-Help friends,
I am unable to get the latest version of R (2.4.1) to compile on my solaris 10
system - has anybody else experienced this problem and are you able to offer me
any advice?
I appreciate your time, many thanks,
Jenny Barnes
Here are my CURRENT specifications:
platform sparc-sun-solaris2.10
arch sparc
os solaris2.10
2007 Jan 10
2
correlation value and map
Dear R-help community,
I have 2 different arrays of precipitation data each of the same dimensions of
[longitude, latitude, time] dim=[30,32,43], called array1 and array2. I need to
correlate them. This is the code I used to get one overall correlation value for
the whole of the area of interest:
> result <- cor(array1,array2,use="complete.obs")
> result
This give me a
2007 Feb 04
1
futures, investment, etc
Hi
I am just starting to look at R and trading in futures, stock, etc
Can anyone point me to useful background material?
2007 Oct 03
2
Sample selection problem
I want to get a sample of some arbitrary size from a population having only two values 0 and 1 with replacement, but with different probability for selection. For example 0 will be selected with probability 0.4 and 1 with 0.6. I could use sample function i.e. sample(c(0,1), 30, T) to get this, however here, selection of either 0 or 1 has equal probability here. I am looking for a function which
2007 Mar 07
1
compiling latest version of R
Dear R-help community,
I have had trouble in the past installing the latest version of R: we got the
errors shown below (the computer specifications and version of R are below
that). Does anybody have tips for compiling the latest version of R so that I
can avoid these errors?
configure
make
...
...
...
f90: CODE: 0 WORDS, DATA: 0 WORDS
gcc -G -L/usr/local/lib -o stats.so init.o kmeans.o
2007 Oct 05
1
Matrix package installation problem
I need some help
I try to install the following package: Matrix_0.999375-2.tar.gz
I have the needed package and R version.
My operating sytem is linux suse 10.1.
I have the following error message
/usr/lib/gcc/i586-suse-linux/4.1.0/../../../../i586-suse-linux/bin/ld:
ne peut trouver -lgfortran
collect2: ld returned 1 exit status
make: *** [Matrix.so] Erreur 1
ERROR: compilation failed for
2011 Jul 12
1
fixed effects Tobit, Honore style?
Hi all,
Is there any code to run fixed effects Tobit models in the style of Honore
(1992) in R?
(The original Honore article is here:
http://www.jstor.org/sici?sici=0012-9682%28199205%2960%3A3%3C533%3ATLALSE%3E2.0.CO%3B2-2)
Cheers
David
[[alternative HTML version deleted]]
2007 Feb 28
4
legend question
Hi to all,
I'm sorry for posting this question, I am sure I am missing something
important but after reading the documentation I cannot find where the
problem is.
I want to add a legend to a figure. If I use a simple example drawn
from the R Reference Manual such as, for instance:
x <- seq(-pi, pi, len = 65)
plot(x, sin(x), type="l", col = 2)
legend(x = -3, y = .9,
2008 Apr 24
1
system() function
Hi,
I am trying to run the command: R CMD INSTALL -l mypath mypackagename
from within R (Windows XP) using system() and get the following error:
ARGUMENT 'CMD INSTALL -l D:/R/JMB.LIBS jmb.test' __ignored__
Fatal error: you must specify '--save', '--no-save' or '--vanilla'
My function contains these 3 lines:
setwd("D:/R/R.pkgs") # path to files set
2007 Mar 13
1
Freeman-Tukey arcsine transformation
R-Experts:
Does anyone know if there are R functions to perform the Freeman-Tukey
double arcsine transformation and then backtransform it?
Thanks,
Brant Inman
Mayo Clinic