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 Everyone,
Can you please help me to achieve output without any decimal, I have many data , so mainly I need output without decimal.
Input :
17.921
7.83
379.48
1.040.855
0
1.09
237.703
1.11
4.387
Output
17921
783
37948
1040855
0
109
237703
111
4387
... View more
Hi, I am running the following macro %macro geomeans (data=, outcome=);
%let total_vars = %sysfunc (countw (&outcome) );
%do i = 1 %to &total_vars;
%let selected_var=%scan (&outcome, &i);
ods output estimates=geomeans&i;
proc genmod data=&data;
class brinda15 / param = glm;
model &outcome = brinda15 / type3 dist=normal ;
estimate "Overall estimate &outcome brinda15 =0" intercept 1 brinda15 1 0 /exp;
estimate "Overall estimate &outcome brinda15 =1 " intercept 1 brinda15 0 1 /exp;
run;
ods output close; I call the macro with the following code: %geomeans (data=db, outcome=var1 var2 var3) It works only for the first variable (it doesn't matter which one it is), but for the other variables I the error message below In case it matters, my outcomes are continuous and ln transformed. Any tips of how to fix this are welcome! Thank you
... View more
Hi,
If I have a program like this that runs every month.
DATA HAVE;
INPUT CATEGORY$ TYPE MONTH ;
CARDS;
A 100 1
B 200 2
B 100 3
B 200 1
A 100 2
A 200 1
B 200 1
A 100 1
A 200 2
A 200 3
A 100 5
A 200 9
B 200 10
A 100 1
A 200 11
A 200 11
;
RUN;
PROC SQL;
CREATE TABLE INVENTORY AS
SELECT CATEGORY,
TYPE,
COUNT (CASE WHEN MONTH = 1 THEN TYPE END) AS JANUARY,
COUNT (CASE WHEN MONTH = 2 THEN TYPE END) AS FEBRUARY,
COUNT (CASE WHEN MONTH = 3 THEN TYPE END) AS MARCH,
COUNT (CASE WHEN MONTH = 4 THEN TYPE END) AS APRIL,
COUNT (CASE WHEN MONTH = 5 THEN TYPE END) AS MAY,
COUNT (CASE WHEN MONTH = 6 THEN TYPE END) AS JUNE,
COUNT (CASE WHEN MONTH = 7 THEN TYPE END) AS JULY,
COUNT (CASE WHEN MONTH = 8 THEN TYPE END) AS AUGUST,
COUNT (CASE WHEN MONTH = 9 THEN TYPE END) AS SEPTEMBER,
COUNT (CASE WHEN MONTH = 10 THEN TYPE END) AS OCTOBER,
COUNT (CASE WHEN MONTH = 11 THEN TYPE END) AS NOVEMBER,
COUNT (CASE WHEN MONTH = 12 THEN TYPE END) AS DECEMBER
FROM HAVE
GROUP BY CATEGORY, TYPE;
RUN;
But I don't want months without data to appear in the report. I want to get this:
How should I proceed ?
... View more
Hello folks! Together with a friend, we're looking into concurrency & parallelism, but beforehand we want to understand what kind of resource would be best for the Graphics field. Her work is more Mesh oriented while mine is related to Rendering. The aspect that's shared is that we both work in C++. With this in mind, any good pointers? All help and guidance is very much appreciated.
... View more
i have a data s follows: there are only 2 variables, age group (age) and survival time (time). there is no censoring observations. input age $ time ; cards; "<=40" 2 "<=40" 3 "<=40" 6 "<=40" 6 "<=40" 7 "<=40" 10 "<=40" 15 "<=40" 15 "<=40" 16 "<=40" 27 "<=40" 30 "<=40" 32 ">40" 1 ">40" 1 ">40" 1 ">40" 1 ">40" 2 ">40" 3 ">40" 3 ">40" 9 ">40" 22 ; i have two questions: 1) did i enter the data correctly? 2) how do i conduct a log-rank test to compare survival curves between 2 age groups?
... View more