nicolas_ Tracker
https://communities.sas.com/kntur85557/tracker
nicolas_ TrackerSun, 26 May 2024 05:29:29 GMT2024-05-26T05:29:29ZRe: What is this statement trying to do!
https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/What-is-this-statement-trying-to-do/m-p/93753#M622
<HTML><HEAD></HEAD><BODY><P>Those are subscript reduction operators. They collapse the dimensionality of your matrix and the + tells SAS to do this by summing.</P><P>If you have a matrix Z = {1 2 3, 4 5 6, 7 8 9} then Z[+,] = {(1+4+8) (2+5+8) (3+6+9)} = {12 15 18}, which is a rowvector. Z[,+] = {1+2+3,4+5+6,7+8+9} = {6,15,24}, which is a columnvector.</P><P></P><P>See <A href="http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#workmatrix_sect14.htm" title="http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#workmatrix_sect14.htm">http://support.sas.com/documentation/cdl/en/imlug/59656/HTML/default/viewer.htm#workmatrix_sect14.htm</A> for more info.</P></BODY></HTML>Wed, 27 Jun 2012 17:16:06 GMThttps://communities.sas.com/t5/SAS-IML-Software-and-Matrix/What-is-this-statement-trying-to-do/m-p/93753#M622nicolas_2012-06-27T17:16:06ZRe: # between two vectors
https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/between-two-vectors/m-p/9420#M18
It doesn't do anything as the dimensions don't match up. If you execute the code as you say you get errors.Fri, 10 Jun 2011 13:16:51 GMThttps://communities.sas.com/t5/SAS-IML-Software-and-Matrix/between-two-vectors/m-p/9420#M18nicolas_2011-06-10T13:16:51ZRe: # between two vectors
https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/between-two-vectors/m-p/9417#M15
Hi,<BR />
<BR />
The code you posted just results in an error as the dimensions of both vectors don't match.<BR />
<BR />
You can find the answer to your question in the following blog post.<BR />
<BR />
<A href="http://blogs.sas.com/iml/index.php?/archives/48-Shorthand-Notation-for-Row-and-Column-Operations.html" target="_blank">http://blogs.sas.com/iml/index.php?/archives/48-Shorthand-Notation-for-Row-and-Column-Operations.html</A><BR />
<BR />
NicolasThu, 09 Jun 2011 15:21:19 GMThttps://communities.sas.com/t5/SAS-IML-Software-and-Matrix/between-two-vectors/m-p/9417#M15nicolas_2011-06-09T15:21:19ZRe: Generating normal variable 50 times
https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Generating-normal-variable-50-times/m-p/45028#M247
You just multiply E by the square root of the variance, i.e. E=2#normal(repeat(-1,n));<BR />
<BR />
A linear transformation aX+b of a normal variable X is again normally distributed with mean equal to a*mean(X) + b and variance equal to a^2*var(X)Wed, 06 Apr 2011 14:39:18 GMThttps://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Generating-normal-variable-50-times/m-p/45028#M247nicolas_2011-04-06T14:39:18ZGOTO statement
https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/GOTO-statement/m-p/25540#M112
Hello, <BR />
<BR />
In order to estimate mixture models i need to generate multiple random starts and estimate the local maxima of the likelihood by the expectation-maximization algorithm. Thus, i have two loops, one outer loop for a particular set of starting values and an inner loop for the EM iterations. For some bad start values the EM-iterations encounter computational problems such as singular matrices, overflows,.. This is not a problem, just discard these start values and try a new set. I try to do this as follows: <BR />
<BR />
onerror=" goto st; resume; ";<BR />
do s=1 to n_start;<BR />
call push(onerror);<BR />
st: run start; /*some module to generate start values*/<BR />
do e=1 to em_iterations;<BR />
run em; /*some module to perform 1 EM-iteration*/<BR />
end;<BR />
end;<BR />
<BR />
This however doesn't work and i get ERROR: Unresolved label: ST. I've also tried <BR />
onerror=" do; goto st; resume; end;"; but that doesn't work either. <BR />
<BR />
Does anyone have an idea how to make this work (or knows a better way to go about this)? <BR />
<BR />
Thanks in advance, <BR />
<BR />
NicolasFri, 21 May 2010 12:48:00 GMThttps://communities.sas.com/t5/SAS-IML-Software-and-Matrix/GOTO-statement/m-p/25540#M112nicolas_2010-05-21T12:48:00Z