# Thread: Need help with data for regression analysis

1. ## Need help with data for regression analysis

I have extracted the following values from Draper and Smith (1998) for independent variable X, dependent variable Y for regression analysis:

Weeks Chlorine
(since (Percent
production) available)
(X) (Y)

8 0.49
8 0.49
8 0.47
10 0.47
10 0.48
10 0.47
12 0.46
12 0.46
12 0.45
12 0.43
14 0.45
14 0.43
14 0.43
14 0.41
14 0.47
14 0.49
15 0.47
15 0.46
15 0.45
16 0.45
16 0.42
17 0.45
17 0.41
17 0.43
17 0.49
17 0.49
18 0.47
18 0.44
18 0.48
18 0.45
18 0.46
19 0.46
19 0.41
19 0.43
19 0.45
20 0.42
20 0.43
20 0.41
20 0.47
21 0.49
21 0.48
21 0.46
22 0.45
22 0.45
23 0.42
23 0.45
24 0.42
24 0.43
24 0.48
24 0.49
25 0.47
25 0.47
25 0.48
25 0.47
25 0.46
25 0.46
25 0.45
25 0.43
26 0.41
26 0.43
26 0.43
26 0.41
26 0.47
27 0.48
27 0.47
27 0.46
27 0.45
28 0.45
28 0.41
28 0.41

Are these values fine to work with since there are repetitions in X?

2. ## Re: Need help with data for regression analysis

You have to do a better job describing these data. What exactly is X and Y. Please define them with more detail.

3. ## Re: Need help with data for regression analysis

Hey

I'd like to know the answer to this question because I have a similar situation with some data.

In my case, it's because I have measured the DV in different conditions in a within subject design, so I have the data in the long narrow format:
Subject condition (X) (Y)
1 1 8 0.49
1 2 8 0.49
1 3 8 0.47
2 1 10 0.47
2 2 10 0.48
2 3 10 0.47
etc,

In my case I'd like to perform regression as well, but I don't know if it's valid or how either because of the repetitions of X ^ ^ U... And because I want to include the conditions we have manipulated in the regression analyses. I think I have to dummy code it , but will that be enough for the software to accept it? I think I can or I should include the interaction between the categorical vv condition and the continuous IV X... Would it be enough if I code the conditions as 1 and -1 and multiply them with X? And what happens if the conditions are within subject?

 Tweet

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts