The problem:
To use putexcel in Stata to export the table outputs from the Stata kr20 user-written command. The averages from the table are saved in four global macros:
- $S_3: average value of item difficulties
- $S_4: average value of corrected item-test PB correlation coefficients
- $S_5: number of items
- $S_6: KR20
It is not clear where the rest of the table contents are saved.
The requested solution:
A Stata putexcel code to run at the end of my current code (below) to export to Excel the table outputs from the Stata user-written command, kr20.
Current code:
* set up
set mat 11000
set more off
* get data
qui: use http://www.stata-press.com/data/r15/masc2.dta
*get kr20 estimates
kr20 q*
*use putexcel to export the kr20 estimates */
* this is where I am stuck
Many thank
Gwin
To use putexcel in Stata to export the table outputs from the Stata kr20 user-written command. The averages from the table are saved in four global macros:
- $S_3: average value of item difficulties
- $S_4: average value of corrected item-test PB correlation coefficients
- $S_5: number of items
- $S_6: KR20
It is not clear where the rest of the table contents are saved.
The requested solution:
A Stata putexcel code to run at the end of my current code (below) to export to Excel the table outputs from the Stata user-written command, kr20.
Current code:
* set up
set mat 11000
set more off
* get data
qui: use http://www.stata-press.com/data/r15/masc2.dta
*get kr20 estimates
kr20 q*
*use putexcel to export the kr20 estimates */
* this is where I am stuck
Many thank
Gwin
Comment