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.
I have a setting file, the top two lines are below(it have 10+ lines).
Need to update the sinx_index value with a macro variable from SAS run.
How to do it?! Any convenient way, thanks,
[global]
sinx_index=100
... View more
Hi, I am trying to achieve a specific sort order using custom sort for the variables Names and Codes. I have a sample variable with this order below: Names Codes Boys 2795 2796 2900 PHA Total Girls 2795 2796 2900 PHA Total Dads 2795 2796 2900 PHA Total Moms 2795 2796 2900 PHA Total This is the order I wanted Names Codes Dads PHA 2795 2796 2900 Total Moms PHA 2795 2796 2900 Total Boys PHA 2795 2796 2900 Total Girls PHA 2795 2796 2900 Total
... View more
I have an interesting challenge with TEMPLATE. I am trying to create a lattice where each plot within the lattice is a panel of graphs. For a single panel of graphs, I can easily do this with SGPANEL, but I need to make a single figure with several different panels. The following TEMPLATE code works just fine to create a 1x4 panel of graphs (instead of using SGPANEL):
proc template;
define statgraph test12;
begingraph;
layout datapanel classvars=(type _trt) / rows=1 columns=4;
layout prototype;
bandplot x=year limitupper=uclmarg limitlower=lclmarg ;
seriesplot x=year y=y / lineattrs=graphFit ;
scatterplot x=year y=y / markerattrs=(size=8px color=blue symbol=circlefilled) ;
endlayout;
endlayout;
endgraph;
end;
run;
I would like to wrap the equivalent of a "LAYOUT LATTICE" around this to have several rows, where each row is a panel of four (or whatever) graphs (with a different response variable for each row). I realize that LAYOUT LATTICE does not allow for DATAPANEL, so I am looking for a workaround. For instance, I would like to use something like:
proc template;
define statgraph test12;
begingraph;
layout lattice / columns=1 rows=3;
layout datapanel classvars=(type _trt) / rows=1 columns=4;
layout prototype;
bandplot x=year limitupper=uclmarg limitlower=lclmarg ;
seriesplot x=year y=p / lineattrs=graphFit ;
scatterplot x=year y=y / markerattrs=(size=8px color=blue symbol=circlefilled) ;
endlayout;
layout datapanel classvars=(type _trt) / rows=1 columns=4;
layout prototype;
bandplot x=year limitupper=uclmarg2 limitlower=lclmarg2 ;
seriesplot x=year y=p2 / lineattrs=graphFit ;
scatterplot x=year y=y2 / markerattrs=(size=8px color=blue symbol=circlefilled) ;
endlayout;
endlayout;
....
endlayout;
endgraph;
end;
run;
Any recommendations on how to do this? Thanks.
LVM
... View more
Please direct me if I am in the wrong location. I will still ask the question here. I have sas 9.4 version TS1M7. I have difficulty scrolling up and down the Enhanced Editor Window. its very lagging, but log window is working with sufficient speed. How to fix this. I tried changing the size of the font and different options in SAS> Tools sections.. How to solve this issue
... View more
Hi all, I have a situation where I need to create a dataset with some long free text. Is there a way to force SAS to read the below correctly beyond the 80th column? Works well if PARAMETER was limited to 80th column, beyond that it gets messed up. Also, MISSOVER option didn't solve the issue. Output of below code shown below. data test; /* infile datalines missover;*/ input ord 1-2 _NAME_ $ 4-5 PARAMETER $ 7-185; cards; 1 A text here text here 2 B text here text here text here text here text here text here 3 C text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here 4 D text here ; Thanks!
... View more