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.
Hi all,
I'm new in conducting LASSO selection. After reading through several online resources, I used PROC HPGENSELECT with selection method=LASSO to select covariates. But it somehow generated two sets of output. I fed in 188 covariates. The first set of output kept 155 covariates, while the second set of output that was generated at the end kept only 5 covariates. The first output has lower AIC/BIC. I wondered why the second output was generated and how I should use the two sets of output to interpret the selection results.
The code looks like below:
PROC HPGENSELECT DATA= analytic_file;
class Female(ref='0') var3(ref='0') ... var188(ref='0') ;
model success(event='1') =age Female var3 ... var188/dist=binary;
selection method=LASSO (choose=SBC stop=none) details=all;
run;
Thank you!
... View more
Hello all, I am very new to SAS. I can interpret a few things in SAS but when it comes to writing a code I am completely lost. data dormant_pca_cc; set dev.fcs_jun19_dorm_pca_cc_build; Above is my dataset info. Attached is the file containing the final variables(along with variable description) which should be considered for calculating obligator level score/ PD. The dependent variable is: FCS_bad_9m_Jun19 Can anyone help me writing a code to calculate obligator level PD in SAS? Many thanks, A
... View more
Greetings. I asked an online LLM to generate some SAS code for me. It did so. I haven't tried the code yet. The procedures contained in the code are listed below. I'm wondering if any of the procedures will be missing from SAS online, SAS Studio? Please explain limitations that exist, such as which procedures are missing, dataset size limits, code length limits, etc.
SAS Procedures Required In LLM-Generated Code: proc assoc proc cluster proc corr proc cvmodelfit proc fcmp proc glm proc glmselect proc hpensemble proc hpforest proc hplogistic proc hpreduce proc import proc means proc nlin proc optmodel proc print proc score proc sgplot proc sql proc stdize proc surveyselect proc transpose proc tree
... View more
data _null_; string = 'antioxidant'; length unique $200 position_list $200; do i = 1 to length(string); letter = substr(string, i, 1); count = countc(string, letter); if count = 1 then do; unique = cats(unique, letter); position_list = cats(position_list, i); end; end; put unique; put position_list; run;
I want output position of non repeated letters like below
Non-Repeated_Letters
O
X
D
antioxidant
5
6
8
... View more
I'm kind of confused about what a library is. I think it's just a folder that contains folders and files, but this is not clear to me. If a library doesn't have any files (but rather has files in subfolders), will files not be accessible? Would we/can therefore add another libref to a subfolder to access those files within subfolders?
... View more