[R] Power calculation

2015-04-23 Thread Keniajin Wambui
I am are currently evaluating risk factors associated with a virus A , incidence among patients with a follow-up sample of 312. Overall, the virus incidence rate is estimated at 4.7 per 100 pyr, 95% CI (3.0-7.4), with a total follow-up time of 383.9 person years and 18 incidence cases. How can I d

[R] Fwd: Merge

2013-05-23 Thread Keniajin Wambui
-- Forwarded message -- From: Keniajin Wambui Date: Thu, May 23, 2013 at 11:36 AM Subject: Merge To: r-help@r-project.org I am using R 3.01 on R Studio to merge two data sets with approx 120 variables and the other with 140 variables but with a serialno as the unique identifier

[R] (no subject)

2014-01-14 Thread Keniajin Wambui
I am using R3.02 on WIndows 7 64bit. How can I test for trend across ordered groups. I am using `prop.trend.test` but it doesn't order into groups and doesn't give the expected output of `sum of ranks` , `z value`... I have this data set and am doing `prop.trend.test (birthweight2$lbw2 ,birth

Re: [R] (no subject)

2014-02-05 Thread Keniajin Wambui
correlation, or maybe a rank sum (Wilcoxon type) test > against a directional alternative? (I'm not too sure, but package "coin" > might have the latter). > > -pd > > On 15 Jan 2014, at 07:30 , Keniajin Wambui wrote: > >> I am using R3.02 on WIndows 7 64bit

[R] Bar Graph

2013-11-11 Thread Keniajin Wambui
I am using R 3.0.2 on a 64 bit machine I have a data set from 1989-2002. The data has four variables serialno, date, admission ward, temperature and bcg scar. serialno admin_ward date_admn bcg_scar temp_axilla yr 70162Ward2 11-Oct-89 y 38.9 1989 70163 Ward1

Re: [R] Bar Graph

2013-11-13 Thread Keniajin Wambui
variables in the above case temp axilla. The above code plot count of temp_axilla yearly,how can I include serialno to be part of the plot? I have used library(ggplot2) library(foreign) utils package On Tue, Nov 12, 2013 at 11:53 AM, jwd wrote: > On Mon, 11 Nov 2013 18:02:19 +0300 > Ke

[R] Subscript out of bounds

2013-11-26 Thread Keniajin Wambui
I am using R3.0.2 on a windows 64 bit machine. I building a .rnw file from an .r file. I am using MikTex as the engine for latex. The function dtaStata <- read.dta("core2.dta", convert.dates=TRUE) works well in .R but; When I try reading a dta (stata) file I get an error "subscript out of bounds".

Re: [R] Subscript out of bounds

2013-11-26 Thread Keniajin Wambui
.OO#. .OO#. rocks...1k > --- > Sent from my phone. Please excuse my brevity. > > Keniajin Wambui wrote: >>I am using R3.0.2 on a windows 64 bit machine. I building a .rnw file >>from an .r file. I am using MikTex as the engine

Re: [R] Subscript out of bounds

2013-11-26 Thread Keniajin Wambui
Here is the error am getting Error: chunk 1 Error in tt[[ll[v]]] : subscript out of bounds Error in rle(filenames) : 'x' must be an atomic vector Calls: -> -> RweaveTryStop Execution halted On Wed, Nov 27, 2013 at 9:25 AM, Keniajin Wambui wrote: > Dear Jeff; > B