turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Stuck with a dependent and independent variables. ...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-13-2017 12:04 AM

Use the file to test if humans and hybrid differ for 1. Throughput and 2. Quality.

Variable | Columns |

Human throughput | 1-5 |

hybrid throughput | 7-11 |

Human quality | 13-16 |

Hybrid quality | 18-21 |

- Check the assumptions and determine statistical model
- Find the test statistic and report p-value
- Made a decision

So far I have the following code but let me know if this code is correct or if there is any other way to compare throughput and quality

data robot;

infile 'C:\Users\\Downloads\gas.dat' dlm=',' firstobs=2;

input HumT 1-5 HybT 7-11;

diff=HumT-HybT;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Two dependent samples with paired t-test.

For Ho: Uc – Ut = 0, t= 4.4689, and the p-value = 0.0231. The conclusion is to reject Ho and conclude that the reading human and hybrid throughput are significantly different.

data robot;

infile 'C:\Users\paul\Downloads\gas.dat' dlm=',' firstobs=2;

input HumQ 13-16 HybQ 18-21;

diff=HumQ-HybQ;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Here is the data:

185.4 180.4 .889 .997

146.3 248.5 .791 .959

174.4 185.5 .866 .821

184.9 216.4 .888 .914

240.0 269.3 .916 .973

253.8 249.6 .923 .925

238.8 282.0 .894 .912

263.5 315.9 .934 .965

Accepted Solutions

Solution

04-13-2017
01:35 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to pacruz

04-13-2017 12:20 AM - edited 04-13-2017 12:21 AM

I don't think this is correct statistically. Because you're taking a difference and testing if it's 0 that's a paired t-test and I suspect your data is not suitable for a paired test.

pacruz wrote:

Use the file to test if humans and hybrid differ for 1. Throughput and 2. Quality.

Variable

Columns

Human throughput

1-5

hybrid throughput

7-11

Human quality

13-16

Hybrid quality

18-21

- Check the assumptions and determine statistical model
- Find the test statistic and report p-value
- Made a decision
So far I have the following code but let me know if this code is correct or if there is any other way to compare throughput and quality

data robot;

infile 'C:\Users\\Downloads\gas.dat' dlm=',' firstobs=2;

input HumT 1-5 HybT 7-11;

diff=HumT-HybT;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Two dependent samples with paired t-test.

For Ho: Uc – Ut = 0, t= 4.4689, and the p-value = 0.0231. The conclusion is to reject Ho and conclude that the reading human and hybrid throughput are significantly different.

data robot;

infile 'C:\Users\paul\Downloads\gas.dat' dlm=',' firstobs=2;

input HumQ 13-16 HybQ 18-21;

diff=HumQ-HybQ;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Here is the data:

185.4 180.4 .889 .997

146.3 248.5 .791 .959

174.4 185.5 .866 .821

184.9 216.4 .888 .914

240.0 269.3 .916 .973

253.8 249.6 .923 .925

238.8 282.0 .894 .912

263.5 315.9 .934 .965

All Replies

Solution

04-13-2017
01:35 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to pacruz

04-13-2017 12:20 AM - edited 04-13-2017 12:21 AM

I don't think this is correct statistically. Because you're taking a difference and testing if it's 0 that's a paired t-test and I suspect your data is not suitable for a paired test.

pacruz wrote:

Use the file to test if humans and hybrid differ for 1. Throughput and 2. Quality.

Variable

Columns

Human throughput

1-5

hybrid throughput

7-11

Human quality

13-16

Hybrid quality

18-21

- Check the assumptions and determine statistical model
- Find the test statistic and report p-value
- Made a decision
So far I have the following code but let me know if this code is correct or if there is any other way to compare throughput and quality

data robot;

infile 'C:\Users\\Downloads\gas.dat' dlm=',' firstobs=2;

input HumT 1-5 HybT 7-11;

diff=HumT-HybT;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Two dependent samples with paired t-test.

For Ho: Uc – Ut = 0, t= 4.4689, and the p-value = 0.0231. The conclusion is to reject Ho and conclude that the reading human and hybrid throughput are significantly different.

data robot;

infile 'C:\Users\paul\Downloads\gas.dat' dlm=',' firstobs=2;

input HumQ 13-16 HybQ 18-21;

diff=HumQ-HybQ;

run;

proc univariate data=robot normal;

qqplot d /normal (mu=est sigma=est color=red 1=1);

var diff;

run;

proc ttest data=robot side=2 alpha=0.05 h0=0;

var diff;

run;

Here is the data:

185.4 180.4 .889 .997

146.3 248.5 .791 .959

174.4 185.5 .866 .821

184.9 216.4 .888 .914

240.0 269.3 .916 .973

253.8 249.6 .923 .925

238.8 282.0 .894 .912

263.5 315.9 .934 .965

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

04-13-2017 12:36 AM

Are the variables dependent or independent?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to pacruz

04-13-2017 01:10 AM

pacruz wrote:

Are the variables dependent or independent?

I don't know, I didn't run the data and your tests aren't the correct methodology.

FYI - you should plot them as well.