<?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: Interpretation of the graph in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793147#M32741</link>
    <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I solved it doing as you suggested and plotting the head.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 15:01:38 GMT</pubDate>
    <dc:creator>sarafrass</dc:creator>
    <dc:date>2022-01-28T15:01:38Z</dc:date>
    <item>
      <title>Interpretation of the graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793082#M32737</link>
      <description>&lt;P&gt;Good morning, sorry for the bother.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm performing an analysis in SAS and I plotted a graph using the opensource code with R for the Mean-Squared Error in the forest.&lt;/P&gt;&lt;P&gt;I would like to understand what the red, the green and the black line mean. Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Note that a few lines of Python or R code are added before your code; for example:&lt;BR /&gt;# R:&lt;BR /&gt;dm_class_input &amp;lt;- c("class_var_1", "class_var_2")&lt;BR /&gt;dm_interval_input &amp;lt;- c("numeric_var_1", "numeric_var_2")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;library(randomForest)&lt;/P&gt;&lt;P&gt;# Fit RandomForest model w/ training data&lt;BR /&gt;dm_model &amp;lt;- randomForest(dm_model_formula, ntree=200, data=dm_traindf, importance=TRUE)&lt;/P&gt;&lt;P&gt;# Save MSE plot to PNG&lt;BR /&gt;png("rpt_forestMsePlot.png")&lt;BR /&gt;plot(dm_model, main='randomForest Mean-Squared Error Plot')&lt;BR /&gt;dev.off()&lt;/P&gt;&lt;P&gt;# Save VariableImportance to CSV&lt;BR /&gt;write.csv(importance(dm_model), file="rpt_forestIMP.csv", row.names=TRUE)&lt;/P&gt;&lt;P&gt;# Score full data&lt;BR /&gt;dm_scoreddf &amp;lt;- data.frame(predict(dm_model, dm_inputdf, type="prob"))&lt;BR /&gt;colnames(dm_scoreddf) &amp;lt;- c("P_Dec_Tree", "P_Dec_Tree1")&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 09:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793082#M32737</guid>
      <dc:creator>sarafrass</dc:creator>
      <dc:date>2022-01-28T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of the graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793100#M32739</link>
      <description>&lt;P&gt;Too bad the package writer didn't include a legend!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this CrossValidated article, which is a similar question:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.stackexchange.com/questions/549791/random-forest-in-r-intepret-the-plot" target="_blank"&gt;Random Forest in R: intepret the plot - Cross Validated (stackexchange.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the lines is the out-of-bag error&amp;nbsp;rate, which is equal to &lt;SPAN&gt;dm_model$err.rate[,1].&amp;nbsp; I think it is the black line, but you can verify by plotting that quantity in a separate graph. According to the article, the red and green line are for two factors in your data. If you run&amp;nbsp;&lt;BR /&gt;head(dm_model$err.rate) you can see the actual values and match the factor levels to the colors in your graph.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 11:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793100#M32739</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-01-28T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of the graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793147#M32741</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I solved it doing as you suggested and plotting the head.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpretation-of-the-graph/m-p/793147#M32741</guid>
      <dc:creator>sarafrass</dc:creator>
      <dc:date>2022-01-28T15:01:38Z</dc:date>
    </item>
  </channel>
</rss>

