Programming the statistical procedures from SAS

FCS function won't run

Reply
New Contributor
Posts: 4

FCS function won't run

I'm running 9.3, updated this year. 

 

Can't get this code to run. Specifically, the fcs function stays red. I have moved the line of code after the var statement and it doesn't tun there either.

 

proc mi data= diss2.logit nimpute=20 out=mi_fcs seed= 9455;
class fam_parentalc fam_illegal fam_hit fam_placedout
fam_moves fam_poor fc_nonrel fc_rel fc_grp fam_context
depressed anxiety attch sexplus race best;
FCS logistic (race best /link=glogit);
var fam_parentalc fam_illegal fam_hit fam_placedout
fam_moves fam_poor fc_nonrel fc_rel fc_grp fam_context
depressed anxiety attch sexplus age grade race best;
run;

Super User
Posts: 18,598

Re: FCS function won't run

What do you mean by not run? The editor highlighting isn't perfect so that's not a perfect indicator. What errors are you receiving?

 

FCS is in the SAS 9.3 documentation so it should be valid.

New Contributor
Posts: 4

Re: FCS function won't run

Thank you for the quick response! Here is the error message:

 

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.MI_FCS may be incomplete. When this step was stopped there were 0
observations and 0 variables.
3354 class fam_parentalc fam_illegal fam_hit fam_placedout
3355 fam_moves fam_poor fc_nonrel fc_rel fc_grp fam_context
3356 depressed anxiety attch sexplus race best;
3357 fcs logistic (race best /link=glogit);
----
22
202
ERROR 22-322: Syntax error, expecting one of the following: ), DESC, DESCENDING, DETAILS, K,
ORDER, PCOV, PRIOR.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
3358 var fam_parentalc fam_illegal fam_hit fam_placedout
3359 fam_moves fam_poor fc_nonrel fc_rel fc_grp fam_context
3360 depressed anxiety attch sexplus age grade race best;
3361 run;

Super User
Posts: 18,598

Re: FCS function won't run

Can you post the results from PROC SETINIT;RUN;

 

My guess is you don't have a version that supports that option.

Otherwise the error looks like one when you forget to specify something...should something else be specified in your CLASS statement?

New Contributor
Posts: 4

Re: FCS function won't run

PROCEDURE SETINIT used (Total process time):
real time 0.08 seconds
cpu time 0.01 seconds

Original site validation data
Site name: 'UNIVERSITY OF CHICAGO - SFA T&R'.
Site number: 70080553.
Expiration: 30JUN2016.
Grace Period: 45 days (ending 14AUG2016).
Warning Period: 45 days (ending 28SEP2016).
System birthday: 10JUN2015.
Operating System: WX64_WKS.
Product expiration dates:
---Base SAS Software
30JUN2016
---SAS/STAT
30JUN2016
---SAS/GRAPH
30JUN2016
---SAS/ETS
30JUN2016
---SAS/FSP
30JUN2016
---SAS/OR
30JUN2016
---SAS/AF
30JUN2016
---SAS/IML
30JUN2016
---SAS/QC
30JUN2016
---SAS/SHARE
30JUN2016
---SAS/LAB
30JUN2016
---SAS/ASSIST
30JUN2016
---SAS/CONNECT
30JUN2016
---SAS/INSIGHT
30JUN2016
---SAS/EIS
30JUN2016
---SAS/GIS
30JUN2016
---SAS/SHARE*NET
30JUN2016
---MDDB Server common products
30JUN2016
---SAS Integration Technologies
30JUN2016
---SAS/Secure Windows
30JUN2016
---SAS Enterprise Guide
30JUN2016
---SAS Bridge for ESRI
30JUN2016
---OR OPT
30JUN2016
---OR PRS
30JUN2016
---OR IVS
30JUN2016
---OR LSO
30JUN2016
---SAS/ACCESS Interface to DB2
30JUN2016
---SAS/ACCESS Interface to Oracle
30JUN2016
---SAS/ACCESS Interface to Sybase
30JUN2016
---SAS/ACCESS Interface to PC Files
30JUN2016
---SAS/ACCESS Interface to ODBC
30JUN2016
---SAS/ACCESS Interface to OLE DB
30JUN2016
---SAS/ACCESS Interface to Teradata
30JUN2016
---SAS/ACCESS Interface to MySQL
30JUN2016
---SAS/IML Studio
30JUN2016
---SAS Workspace Server for Local Access
30JUN2016
---SAS/ACCESS Interface to Netezza
30JUN2016
---SAS/ACCESS Interface to Aster nCluster
30JUN2016
---SAS/ACCESS Interface to Greenplum
30JUN2016
---SAS/ACCESS Interface to Sybase IQ
30JUN2016
---DataFlux Trans DB Driver
30JUN2016
---SAS Framework Data Server
30JUN2016
---Reserved for Dataflux
30JUN2016

 

 

Super User
Posts: 18,598

Re: FCS function won't run

If you have a chance give it a try in SAS UE. 

Beyond that I'm out of idea's, but I'm also not familiar with PROC MI so someone else may be able to point out where the mistake/issue is. 

 

You can also contact SAS tech support, they're very quick and helpful.

Super User
Posts: 18,598

Re: FCS function won't run

If you have a chance give it a try in SAS UE. 

Beyond that I'm out of idea's, but I'm also not familiar with PROC MI so someone else may be able to point out where the mistake/issue is. 

 

You can also contact SAS tech support, they're very quick and helpful.

New Contributor
Posts: 4

Re: FCS function won't run

Thank you :-)

Super User
Posts: 9,779

Re: FCS function won't run

[ Edited ]

your FCS statement doesn't look right. When you do LOGISTIC impute ,you need specify the imputed(class) variable(race is a class variable) at left and specify influence(continuous) varables(best is a numeric or continuous variable) at right

Like:

 

FCS logistic (race=best );

 

and remember put all the continuous variable which are in VAR statement before the CALSS variables which are in CLASS statement.

 

Ask a Question
Discussion stats
  • 8 replies
  • 349 views
  • 0 likes
  • 3 in conversation