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
- /
- SAS Programming
- /
- General Programming
- /
- the syntax for calculating the p value of the corr...

Topic Options

- 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
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

05-04-2016 10:46 PM

In my study, I need to compare the nested model and the comparison model to test the parameter's invariance of the SEM. Because of the non-normality, I manually calculate the chi square difference and df difference, but I don't know how to calculate the p value. Therefore, in sas, how to use the syntax to calculate the p value of the corresponding chi square difference and df difference. There is no data.

Here is the syntax I used, but the system presented some errors.

Thank you in advance! Any response is really appreciated.

Accepted Solutions

Solution

05-05-2016
02:52 AM

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

Posted in reply to alexandrewen

05-04-2016 10:55 PM

**Just need to fix first statement.**

**Data _null_;**

P_value=1-probchi(15.967,15);

Put P_value;

Run;

All Replies

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

Posted in reply to alexandrewen

05-04-2016 10:49 PM

Here is the syntax, but some errors occurred.

Data=null;

P_value=1-probchi(15.967,15);

Put P_value;

Run;

Solution

05-05-2016
02:52 AM

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

Posted in reply to alexandrewen

05-04-2016 10:55 PM

**Just need to fix first statement.**

**Data _null_;**

P_value=1-probchi(15.967,15);

Put P_value;

Run;

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

Posted in reply to stat_sas

05-04-2016 11:27 PM

Thank you!