BookmarkSubscribeRSS Feed
trekvana
Calcite | Level 5
hello all,

how can I augment a vector or matrix with proc iml?

for example, lets say i have a vector x={1,2} and I want to augment x in positions 2 and 3 with the missing indicator (.) or in other words i want x=(1, . , . , 2}. is this possible to do??

in general i have an x vector and i also have an index vector (i={2,3} in this example) with the positions i want to include the (.) character. is there a function that can do what i want?

thanks
Message was edited by: trekvana Message was edited by: trekvana
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
PROC IML and IML Studio are pretty specialized. You might find more answers if you posted this in the forum specifically for IML questions:
http://support.sas.com/forums/forum.jspa?forumID=47

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 709 views
  • 0 likes
  • 2 in conversation