[R] dependence of a variable from the others

2014-03-03 Thread pepe
I would like to study how one variable depends on others. i tried with techniques liko glm and with this code: mod=lm(Variable ~.,data=...) step(mod) but i have some problems when i try with no-numerical variables. in particular i have this table

[R] Friedman test for replicated blocked data

2009-11-23 Thread Pepe Trujillo
Dear Marco: Look in "agricolae" package. There is a Friedman test with and without replicates. In this package is used the Conover's book as a reference. Greetings, Dr. D. José Trujillo Carmona Dpt. of Mathematics Fac. of Science of Badajoz Univ. of Extremadura Spain From: Marco Chiarandini

[R] Moving Average Question

2008-08-14 Thread William Pepe
Dear all. I have data that looks like this: Biller Cycle Jan Feb Mar Apr May JuneAB 1 100 150 150 200 300 450JL 2 650 600 750 700 850 800JL3 700 740 680 690 700 580IR1 455 400 405 410 505 550IR4 600 650 700 750 650 680IR5 100 150 120 1

Re: [R] Help with rearranging data

2008-07-22 Thread William Pepe
e that this is a > mailing> list for R. There are probably other lists/groups better suited for> > Excel-specific problems.> > Cheers> > Henrik> > On Tue, Jul 22, 2008 at 10:59 > AM, William Pepe <[EMAIL PROTECTED]> wrote:> >> > In Excel, I

[R] Help with rearranging data

2008-07-22 Thread William Pepe
In Excel, I have data that looks like this. Month Seg Prod Biller Cycle Sales 1/1/2008 A Table Phyllis 1 500 1/1/2008 A Table Phyllis 2 600 1/1/2008 A Table Phyllis 3 650 1/1/2008 A Table Doreen 1 345 1/1/2008 A Table Doreen 2 451 1/1/2008 A Table Doreen 6 550 1/1/2008 A Table Doreen

Re: [R] overall title

2008-06-12 Thread William Pepe
Check out this previous post from years ago. http://tolstoy.newcastle.edu.au/R/help/00a/2237.html Bill> Date: Thu, 12 Jun 2008 10:38:03 -0500> From: [EMAIL PROTECTED]> To: r-help@r-project.org> Subject: [R] overall title> > I have a 2x2 plot set up using: par(mfrow=c(2,2))> I'd like to put a

Re: [R] col.names ?

2008-06-06 Thread William Pepe
As a very simple example: TolgaData<-data.frame(A=c(1,2),B=c(3,4))names(TolgaData )<- c( "newA", "newB" )> TolgaData Column names should now be newA and newB Best, Bill> To: r-help@r-project.org> From: [EMAIL PROTECTED]> Date: Fri, 6 Jun 2008 20:06:41 +0100> Subject: [R] col.names ?> > Dear R

[R] Graphing help revisited

2008-06-05 Thread William Pepe
Sorry, my last post came out unreadable. I'll try again. Here is the data. Think of them as transposed columns. A: 1,1,1,2,3,4,5,6,6, 7B: 5,5,6,7,7,7,8,9,10,11 Split the data into two groups, each of size 5, and make a scatterplot. Bill<-read.table('something here') attach(Bill)Bill.s<-split

[R] Graphing help

2008-06-05 Thread William Pepe
Hoping someone can help me with some graphics. Here is my data set. A B 1 5 1 5 1 6 2 7 3 7 4 7 5 8 6 9 6 10 7 11 Using this code, I split the data into two groups, each of size 5, and made a scatterplot. Bill<-read.table('something here

Re: [R] merging 3 data sets at once

2008-06-04 Thread William Pepe
By the way, I used age and gender as examples. Plus, I've seen something very similar posted a while ago. If the problem I listed isn't an issue, then that code will work. Best, Bill From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: RE: [R] merging 3 data sets at onceDate: We

Re: [R] merging 3 data sets at once

2008-06-04 Thread William Pepe
I could suggest merge(merge(data1,data2), data3). However, one problem I notice is that is assigns age=12 and gender=M to everyone with id=1, and so on. How are we to know that person with id=1 in data1 is the same person with id=1 in data2 and data3? Bill> Date: Wed, 4 Jun 2008 16:24:04 -

[R] Similar question about subsetting data

2008-06-03 Thread William Pepe
This is just a slight modification of a question I asked earlier. Thanks to all the responders. I have a data set(Bill) of with 1 variable (var1), with 100 obs that are in ascending order. I want to sample every 10 observations and save them in 10 different groups such as Group1 is obs 1-10

[R] Question about subsetting data

2008-06-03 Thread William Pepe
I have a data set(Bill) of with 1 variable (var1), with 100 obs that are in ascending order. I want to sample every 10 observations and save them in 10 different groups such as Group1 is obs 1-10 Group 2 is obs-11-20 and so on. First step is to subset them into the 10 groups, then calc

[R] Time series graphs

2007-09-20 Thread Bill Pepe
I'm fairly new to S-Plus and I need to get this done quickly. Suppose I have the following fake data below: There are two companies, call them Bob and Tom. Each have two variables, call them A and B, that have observations. Bob