<?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: how to create a new column with a formula under square root in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-create-a-new-column-with-a-formula-under-square-root/m-p/844409#M36685</link>
    <description>&lt;P&gt;SAS has a SQRT() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_column = sqrt(var1 * (1-var1) / conteggio_rapport);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can just raise the value to the 0.5 power.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_column = (var1 * (1-var1) / conteggio_rapport) ** 0.5 ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Nov 2022 16:08:13 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-11-15T16:08:13Z</dc:date>
    <item>
      <title>how to create a new column with a formula under square root</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-create-a-new-column-with-a-formula-under-square-root/m-p/844407#M36684</link>
      <description>&lt;P&gt;Hi. I need to create a new column which is the result of a calculation. Specifically i need the new column to be the square root of ((1-var1)/var2). How can I include square root in sas? this is the code i would use but i do not know how to include square root&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data output_datase;
	set input_dataset;
	new_column = var1 * (1-var1) / conteggio_rapport;
	run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the square root has to involve the whole formula. thanks for help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 15:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-create-a-new-column-with-a-formula-under-square-root/m-p/844407#M36684</guid>
      <dc:creator>ari2495</dc:creator>
      <dc:date>2022-11-15T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a new column with a formula under square root</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-create-a-new-column-with-a-formula-under-square-root/m-p/844409#M36685</link>
      <description>&lt;P&gt;SAS has a SQRT() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_column = sqrt(var1 * (1-var1) / conteggio_rapport);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can just raise the value to the 0.5 power.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_column = (var1 * (1-var1) / conteggio_rapport) ** 0.5 ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2022 16:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-create-a-new-column-with-a-formula-under-square-root/m-p/844409#M36685</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-11-15T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

