<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc Data problem in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791488#M32601</link>
    <description>&lt;P&gt;my problem is that I want to display a funcion in SAS with proc G3D and I need the data in the same order than lake. But, I have to take X and Y from an uniform law. I'm able to generate Y with IML but not X.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc iml;
xmax=2;
xmin=-2;
range=xmax-xmin;
Y=j(range,1,0);
X=j(range,1,0);
X1=j(range*range,1,0);
do i=1 to range;
	call randgen(u,'uniform');
	Y[i,1]=xmin+u*range;
end;

do i=1 to range/2;
	y=y//y;
end;

do i=1 to range;
	call randgen(u1,'uniform');
	X[i,1]=xmin+u1*range;
end;

do i=1 to range;
	do n=1 to range*range;
		X1[n,1]=X[i,1];
	end;
end;
print X1;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The idea is to have the axis X1 (which represents the variable x of the function) like the X from sashelp.lake : with a repeated value for each repetition.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 16:31:34 GMT</pubDate>
    <dc:creator>CerditoSalvaje</dc:creator>
    <dc:date>2022-01-21T16:31:34Z</dc:date>
    <item>
      <title>Proc Data problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791450#M32598</link>
      <description>&lt;P&gt;Hello everybody, I have a silly question, but I've been working on it since 3 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the sashelp.lake database we have the same X repeated the length of Y times. And I have to do something like that to represent a function with proc g3d (in order to have z = y*x).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could please tell me how sashelp.lake is created is gonna be very helpful.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791450#M32598</guid>
      <dc:creator>CerditoSalvaje</dc:creator>
      <dc:date>2022-01-21T15:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Data problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791468#M32599</link>
      <description>&lt;P&gt;No idea how LAKE dataset was generated but perhaps something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
  do width=0 to 10 by 0.5 ;
    do length=0 to 7 by 0.5 ;
      z= width*length ;
      output;
    end;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:54:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791468#M32599</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-21T15:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Data problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791470#M32600</link>
      <description>&lt;P&gt;Since the SASHELP.Lake has exactly 3 variables, Width, Length and Depth I am not sure at all what you mean by " X repeated the length of Y times".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to make graph using Proc G3D the data available should work. The X and Y variables could be either of Width and Length and the Z variable would be Depth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Proc g3d data=sashelp.lake;
   plot width*length=depth;
run;
quit; &lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791470#M32600</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-21T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Data problem</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791488#M32601</link>
      <description>&lt;P&gt;my problem is that I want to display a funcion in SAS with proc G3D and I need the data in the same order than lake. But, I have to take X and Y from an uniform law. I'm able to generate Y with IML but not X.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc iml;
xmax=2;
xmin=-2;
range=xmax-xmin;
Y=j(range,1,0);
X=j(range,1,0);
X1=j(range*range,1,0);
do i=1 to range;
	call randgen(u,'uniform');
	Y[i,1]=xmin+u*range;
end;

do i=1 to range/2;
	y=y//y;
end;

do i=1 to range;
	call randgen(u1,'uniform');
	X[i,1]=xmin+u1*range;
end;

do i=1 to range;
	do n=1 to range*range;
		X1[n,1]=X[i,1];
	end;
end;
print X1;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The idea is to have the axis X1 (which represents the variable x of the function) like the X from sashelp.lake : with a repeated value for each repetition.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 16:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Data-problem/m-p/791488#M32601</guid>
      <dc:creator>CerditoSalvaje</dc:creator>
      <dc:date>2022-01-21T16:31:34Z</dc:date>
    </item>
  </channel>
</rss>

