Re: [R] Selecting variables in a multivariate regression

2014-04-14 Thread Edson Tirelli
Bert, I am sorry for having troubled you. The double post was a mistake because gmail sent the first e-mail in html and it went into moderation queue. The second one was sent in plain text. I did not know the moderator approved my first post. 1. As I said, I am a beginner in statistics and

Re: [R] Selecting variables in a multivariate regression

2014-04-14 Thread peter dalgaard
On 14 Apr 2014, at 15:33 , Bert Gunter wrote: > Well, this is your second post on the same topic, your first having > received no response. So you should suspect something is amiss and > reconsider before continuing, don't you think? > > 1. I, for one, was not able to make any sense of your que

Re: [R] Selecting variables in a multivariate regression

2014-04-14 Thread Bert Gunter
Well, this is your second post on the same topic, your first having received no response. So you should suspect something is amiss and reconsider before continuing, don't you think? 1. I, for one, was not able to make any sense of your query. You do not appear to understand regression, so I would

[R] Selecting variables in a multivariate regression

2014-04-13 Thread Edson Tirelli
I am quite new to R and I am having trouble figuring out how to select variables in a multivariate linear regression in R. My google-fu also did not find anything. Pretend I have the following formulas: P = aX + bY Q = cZ + bY I have a data frame with column P, Q, X, Y, Z and I need to find a, b

[R] Selecting variables in a multivariate regression

2014-04-13 Thread Edson Tirelli
I am quite new to R and I am having trouble figuring out how to select variables in a multivariate linear regression in R. My google-foo also did not find anything. Pretend I have the following formulas: P = aX + bY Q = cZ + bY I have a data frame with column P, Q, X, Y, Z and I need to find a,

[R] SELECTING VARIABLES FROM A DATA SHEET

2010-12-15 Thread mliugonzal
Hi, I know that the following question is a basic one,sorry in advance. My problem is that I have a data sheet with 80 variables which are unemployment rates of 80 countries. I call it as u1 to u80. Besides I have for the same countries their productivity rates. I want to do a kind of loop to selec

Re: [R] Selecting variables from a list of data.frames

2009-01-06 Thread Ben Bolker
Magnus zulutime.net> writes: > > I have a simulation program that generates a data frame for each run. I > aggregate the data.frames into a list (df.list). The structure of all data > frames is the same, only the values are different. > > I then want to aggregate the various runs. Currently

[R] Selecting variables from a list of data.frames

2009-01-06 Thread Magnus
I have a simulation program that generates a data frame for each run. I aggregate the data.frames into a list (df.list). The structure of all data frames is the same, only the values are different. I then want to aggregate the various runs. Currently I use the following method (for three runs

Re: [R] Selecting Variables

2008-08-05 Thread jim holtman
I think that you have to be a little more explicit with a description of your data. I am not clear as to what this means: > There are lots of variables between each exposure and the values are nominal > with upto 6 values.. Can you provide a more complete description. How many columns of exposu

Re: [R] Selecting Variables

2008-08-05 Thread Michael Pearmain
Thanks for the help guys, i think i needed to be a bit more explicit however (sorry) There are lots of variables between each exposure and the values are nominal with upto 6 values.. And to add to the problem the datasets i deal with range from anything upto 5G. My guess is that the melt functio

Re: [R] Selecting Variables

2008-08-05 Thread jim holtman
I am not sure where the "Max" comes from, but this might be a start for you: > x <- read.table(textConnection("ID Exposure_1 Exposure_2 Exposure_3 + 1y yy + 2y y- + 3y - -"), hea

Re: [R] Selecting Variables

2008-08-05 Thread Henrique Dallazuanna
Try this: data.frame(ID = x$ID, Max_Exposure = max(rowSums(x[,-1] == "y")), Unique_Exposure = rowSums(x[,-1] == "y")) On Tue, Aug 5, 2008 at 10:21 AM, Michael Pearmain <[EMAIL PROTECTED]> wrote: > Hi All, > > i have a dataset that i want to dynamically inspec

[R] Selecting Variables

2008-08-05 Thread Michael Pearmain
Hi All, i have a dataset that i want to dynamically inspect for the number of variables that start with "Exposure_" and then for these count the entries across each case i.e ID Exposure_1 Exposure_2 Exposure_3 1y yy 2y y