the syntax for calculating the p value of the corresponding chi square difference and df difference

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

the syntax for calculating the p value of the corresponding chi square difference and df difference

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
Trusted Advisor
Posts: 1,203

Re: the syntax I used

Just need to fix first statement.

 

Data _null_;
P_value=1-probchi(15.967,15);
Put P_value;
Run;

View solution in original post


All Replies
Occasional Contributor
Posts: 11

the syntax I used

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
Trusted Advisor
Posts: 1,203

Re: the syntax I used

Just need to fix first statement.

 

Data _null_;
P_value=1-probchi(15.967,15);
Put P_value;
Run;

Occasional Contributor
Posts: 11

Re: the syntax I used

Thank you!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 338 views
  • 1 like
  • 2 in conversation