Recently in the SAS Community Library: SAS' @Sundaresh1 highlights a sometimes overlooked task when applying document embeddings for purposes of similarity-based search. Normalisation of vectors helps obtain relevant matches.
https://support.sas.com/resources/papers/proceedings15/3294-2015.pdf
Hi community,
based on the following paper, I wanted to apply these tests to my series. Is the procedure for calculating the ideal number of lags correct? How do I define the maximum number on which to complete the cycle?
data tstats;
set _null_;
run;
%macro np(indata, testvar);
%do i=1 %to &&nmax;
%if (&i<2) %then %do;
ods output ParameterEstimates=parms_&i.a;
proc reg
data = &indata;
model d1&testvar= lag1&testvar lag&i.d1&testvar;
run;quit;
%end;
%if (&i>1) %then %do;
ods output ParameterEstimates=parms_&i.a;
proc reg
data = &indata;
model d1&testvar = lag1&testvar lag1d1&testvar --
lag&i.d1&testvar;
run;quit;
%end;
data parms_&i (keep=tvalue lag);
set parms_&i.a (where=(variable="lag&i.d1&testvar"));
lag=&i;
run;
data tstats;
set tstats parms_&i;
if abs(tvalue)>1.6 then flag=1;
run;
%end;
proc sort data=tstats;
by descending lag;
run;
%mend;
%np(nhe_data,PCA);
Additionally, which metric should I use because the single mean and the trend give me two different pieces of information with the KPSS test. The single mean tells me that the series is stationary, while the trend does not reject the null hypothesis H0, so it is non-stationary.
/* KWIATKOWSKI-PHILLIPS-SCHMIDT */
proc autoreg
data = data;
model y = /stationarity=(kpss=(kernel=qs auto));
run;
... View more
Fala pessoal, tudo bem? Será que alguém poderia me ajudar ou me ensinar de como fazer, pois estou já há algumas horas nesse código. Estou usando o SAS Viya V.03.05. Eu tenho esse código que já conseguir meio que andar com ele: /* Realizar o Download do Arquivo GeoJSON do Github */
filename mapa temp;
proc http
url="https://raw.githubusercontent.com/tbrugz/geodata-br/master/geojson/geojs-32-mun.json"
method="GET"
out=mapa;
run;
/* Ler o Arquivo GeoJSON usando a Biblioteca JSON */
libname jsonlib json fileref=mapa;
/* Examinar a Estrutura do GeoJSON */
proc contents data=jsonlib._all_;
run; Até aqui, vai bem. O código cria as tabelas do GeoJSON separadas, porém, eu não faço ideia de como linkar isso em um mapa Polígono.. Eu também gostaria de uma ajuda para colocar isso no VA, qual tabela e o passo a passo de como eu poderia fazer.. Se possível é claro. https://prnt.sc/e2I_ecsENtu_
... View more
An updated version of the ZIPCODE data set is available. You can download the most recent version from SAS Maps Online. Note that you will need to log in with your SAS profile credentials and supply your SAS Site number.
The new ZIPCODE dataset, for May 2024, contains 40,996 observations and 21 variables. The package also includes the ZIPMIL and ZIPMISC datasets. These additional ZIP codes might not be included with the SASHELP.ZIPCODE file that ships with your version of SAS.
For information on "how to replace sashelp.zipcode", see these SAS Notes:
Usage Note 19861: How to replace the Sashelp.Zipcode data set
Usage Note 42362: How to use a file other than the Zipcode data set supplied by SAS
Source: zipcodedownload.com (May 2024)
... View more
In VA I created a 100% stacked bar chart with labels per segment. The percentage value is shown with 2 decimals. How can this be changed to 1 decimal? Aantal is the measured variable (Frequencypercentage cannot be used here.) Thanks for suggestions. Jurgen
... View more