Re: [R] [FORGED] Equality of two probabilities (proportions?)

2017-02-10 Thread mamuash bukana
to implement this in R? I wouldn't have been here seeking for help if I had that "deep" understanding of the issue under question Rolf! M On Fri, Feb 10, 2017 at 10:42 AM, Rolf Turner <r.tur...@auckland.ac.nz> wrote: > > On 10/02/17 21:12, mamuash bukana wrote: > >> De

[R] Equality of two probabilities (proportions?)

2017-02-10 Thread mamuash bukana
Dear R users, I wanted to test if there is significant difference between probabilities of the same event calculated in different ways. I am aware about the prop.test() which does the comparison between two proportions given the number of successes and sample sizes. But in my case the only values

[R] Error in reading netcdf files into R

2016-10-11 Thread mamuash bukana
Dear all, I have installed necessary packages such as ncdf4 and RNetCDF. But still my machine can't read netcdf files into R. Below are the file formats and the respective errors: > open.nc("cru.ts3.23.1901.2014.tmx.dat.nc") Error: No such file or directory >

[R] Error in ur.df function

2014-09-04 Thread mamuash bukana
Dear R users, For a time series, say y: y-cumsum(rnorm(100)) # I used ur.df function (urca package) to test for unit root with/without a drift as follows: test-ur.df(y,lags=3,type=drift) # this works for the artificial data here, but when I apply the same function to my very big data, it comes

[R] locating a data value in 3-dimensional data set

2014-04-08 Thread mamuash bukana
I have a 3-dimentional data set with dimensions longitude, latitude, and time. Unfortunately, when I look at the range of values in the data set, I noticed some very extremely large(positive and negative) values which are unexpected to be there. So I wanted to point-out the location (lon, lat and

Re: [R] locating a data value in 3-dimensional data set

2014-04-08 Thread mamuash bukana
right now) argument to which (). I have used it for 2-dim arrays and never for higher dimensions. But try it out by setting the argument to TRUE. Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: mamuash bukana Dato:08/04/2014 15.51 (GMT+01:00) Til: r-help@r

[R] Conditional polygon colouring

2014-02-28 Thread mamuash bukana
Dear R users I want to paint parts of a polygon with different colours conditional to values of the variable. Example: f-seq(1,33) g-sin(f) i-rep(0,33) ff-c(f,rev(f)) gg-c(g,rev(i)) plot(ff,gg,type=n) polygon(ff,gg,col=2) # but I wanted to plot areas below and above the x-axis with different