Search Results

158 résultats trouvés Page 9 / 16
Code SAS
Voir

Regression Analysis and SASHELP Metadata Exploration

proc reg data=sashelp.class; model weight = height; quit;

Code SAS
Voir

Dynamic Execution with CALL EXECUTE

data _null_; myvar='proc print data=sashelp.class; run;'; call execute(myvar); run;

Code SAS
Voir

Dynamic Execution with CALL EXECUTE

data _null_; call execute('proc print data=sashelp.class; run;'); run;

Code SAS
Voir

Introduction to PROC MCMC Example

proc mcmc data=sashelp.class outpost=classout nmc=10000 thin=2 seed=246810; parms beta0 0 beta1 0; parms sigma2 1; prior beta0 beta1 ~ normal(mean = 0, var = 1e6); prior sigma2 ~ igamma(shape = 3/10, scale = 10/3); mu = beta0 + beta1*height; model weight ~ n(mu, var = sigma2); run;

Code SAS
Voir

Regenerating Diagnostic Plots

ods select none; proc mcmc data=sashelp.class nmc=50000 thin=5 outpost=classout seed=246810; parms beta0 0 beta1 0; parms sigma2 1; prior beta0 beta1 ~ normal(0, var = 1e6); prior sigma2 ~ igamma(3/10, scale = 10/3); mu = beta0 + beta1*height; model weight ~ normal(mu, var = sig...

Code SAS
Voir

Unit test of the mf_getvarlist macro

%let test1=%mf_getvarlist(sashelp.class); %let test2=%mf_getvarlist(sashelp.class,dlm=X); %let test3=%mf_getvarlist(sashelp.class,dlm=%str(,),quote=double); %let test4=%mf_getvarlist(sashelp.class,typefilter=N); %let test5=%mf_getvarlist(sashelp.class,typefilter=C);

Code SAS
Voir

Test of the mp_sortinplace macro

proc sql; create table work.example as select * from sashelp.classfit; alter table work.example add constraint pk primary key(name); %mp_sortinplace(work.example)

Code SAS
Voir

Test of the mp_sortinplace macro

proc sql; create table work.example2 as select * from sashelp.classfit; %mp_sortinplace(work.example2)

Code SAS
Voir

Test for creating and executing a SAS Viya web service

filename testref temp; data _null_; file testref; put 'data test; set sashelp.class;run;'; put '%webout(OPEN)'; put '%webout(OBJ,test)'; put '%webout(CLOSE)'; run;

Code SAS
Voir

Test for creating and executing a SAS Viya web service

%mp_assertdsobs(work.out, desc=Test1 - 19 obs from sashelp.class in service result, test=EQUALS 19, outds=work.test_results )