OMS syntax not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OMS syntax not working

Zdaniuk, Bozena-3
hello everyone,
I am running a MIXED model on 10K bootstrapped samples and would like to capture the parameter estimates  values ( Estimates of fixed effects) into a separate data file using OMS. I think I am doing something wrong because the syntax below runs ok and produces the output file for all 10k samples but the OMS part does not produce a data file with the parameter estimates from the Estimates of fixed effects output table. Would someone be willing to have a look and tell me what I am messing up here?
thanks so much!
bozena

DATASET DECLARE  mixed_estimates.
OMS
  /SELECT TABLES
  /IF COMMANDS=['Mixed'] SUBTYPES=['Parameter Estimates']
  /DESTINATION FORMAT=SAV NUMBERED=TableNumber_
   OUTFILE='C:\Users\bzdaniuk\Documents\Mediation_revs_anal\mixed_estimates.sav' VIEWER=YES
  /TAG='SAMID'.
* OMSEND.
SPLIT FILE BY SAMPLEID.
MIXED
  ffm_total_diff  BY group_zero WITH Time ffm_total_mean
  /FIXED =group_zero Time group_zero*Time ffm_total_mean  | SSTYPE(3)
  /METHOD = ML
  /PRINT = DESCRIPTIVES SOLUTION TESTCOV R.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: OMS syntax not working

Andy W
Currently it is writing a file to disk, if you replace the OUTFILE subcommand
as:

OUTFILE='mixed_estimates'

it should produce a dataset in memory with that name. (Also IIRC *had* to do
OMSEND before I could access that file in a more recent version of SPSS.
Might be wrong and folks I presume will correct me if that is the case.)



-----
Andy W
[hidden email]
http://andrewpwheeler.wordpress.com/
--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: OMS syntax not working

Jon Peck
In reply to this post by Zdaniuk, Bozena-3
There should be an OMSEND command after the MIXED command.

On Fri, Jun 21, 2019 at 3:39 PM Zdaniuk, Bozena <[hidden email]> wrote:
hello everyone,
I am running a MIXED model on 10K bootstrapped samples and would like to capture the parameter estimates  values ( Estimates of fixed effects) into a separate data file using OMS. I think I am doing something wrong because the syntax below runs ok and produces the output file for all 10k samples but the OMS part does not produce a data file with the parameter estimates from the Estimates of fixed effects output table. Would someone be willing to have a look and tell me what I am messing up here?
thanks so much!
bozena

DATASET DECLARE  mixed_estimates.
OMS
  /SELECT TABLES
  /IF COMMANDS=['Mixed'] SUBTYPES=['Parameter Estimates']
  /DESTINATION FORMAT=SAV NUMBERED=TableNumber_
   OUTFILE='C:\Users\bzdaniuk\Documents\Mediation_revs_anal\mixed_estimates.sav' VIEWER=YES
  /TAG='SAMID'.
* OMSEND.
SPLIT FILE BY SAMPLEID.
MIXED
  ffm_total_diff  BY group_zero WITH Time ffm_total_mean
  /FIXED =group_zero Time group_zero*Time ffm_total_mean  | SSTYPE(3)
  /METHOD = ML
  /PRINT = DESCRIPTIVES SOLUTION TESTCOV R.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


--
Jon K Peck
[hidden email]

===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD