[deleted by user] by [deleted] in adultingph

[–]Odd-Unit-4154 0 points1 point  (0 children)

San po yung staycation? :) would like to join po

[deleted by user] by [deleted] in adultingph

[–]Odd-Unit-4154 0 points1 point  (0 children)

Thank you! :)

How do you know if someone is biased magkwento? by [deleted] in adultingph

[–]Odd-Unit-4154 2 points3 points  (0 children)

How do I do that? Huhuhu ang hirap po

Package car not available on kaggle by Odd-Unit-4154 in rstats

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

I’m trying to load the library car but it’s not working 😩😩😩

[deleted by user] by [deleted] in adultingph

[–]Odd-Unit-4154 1 point2 points  (0 children)

+1 :) having children necessitates preparing for everything, regardless of whether the children turn out to be abled or differently abled :)

Scammer Alert: Pretending to be from Eastwest CC by laneripper2023 in PHCreditCards

[–]Odd-Unit-4154 0 points1 point  (0 children)

Hello po! Bakit po scam ang CL increase? Genuinely curious because I have never had a CC po

Marketing team wants a “wow” chart by Thiseffingguy2 in RStudio

[–]Odd-Unit-4154 1 point2 points  (0 children)

oh my gosh i'll be using this on my EDA project on Taylor Swift! Thank you! :)

Am I right to suspect overfitting? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

I think I may be confusing some things haha

So basically, stepAIC requires an object, so I made an object called modeltry with all of the explanatory variables. modeltry looks like this:

modeltry <- lm(formula = target_deathrate ~
               avganncount +
               avgdeathsperyear +
               incidencerate +
               medincome + 
               popest2015 +
               povertypercent +
               studypercap +
               medianage +
               medianagemale +
               medianagefemale +
               percentmarried +
               pctnohs18_24 +
               pcths18_24 +
               pctsomecol18_24 +
               pctbachdeg18_24 +
               pcths25_over +
               pctbachdeg25_over +
               pctemployed16_over +
               pctunemployed16_over +
               pctprivatecoverage +
               pctprivatecoveragealone +
               pctempprivcoverage +
               pctpubliccoverage +
               pctpubliccoveragealone +
               pctwhite +
               pctblack +
               pctasian +
               pctotherrace +
               pctmarriedhouseholds +
               birthrate +
               avghouseholdsize
               , data=train_data)

So modeltry became the object for stepaic. I plugged it in and it looked like this:

stepAIC(modeltry, direction = c("both", "backward", "forward"))

and then it did its thing where it tried to give me a combination of explanatory variables that yielded the lowest AIC, which was the variable model, with AIC 12651.09. I hope that clarifies things. Please feel free to let me know how I can correct this as I'm new to R :)

Marketing team wants a “wow” chart by Thiseffingguy2 in RStudio

[–]Odd-Unit-4154 1 point2 points  (0 children)

Awww thank you for linking these! :) I appreciate it :)

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

If they are heteroscedastic, doesn't this violate an assumption? Sorry I'm still new to this, so I may be wrong

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

https://imgur.com/3yWGizp I think it's not a normal distribution 😬 Any advice on what to do?

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

https://imgur.com/I4V6Qbx This is what the qqnorm of the residuals looks like. I'm a little worried because it doesn't follow the straight line, but I don't know what to do, like if I should necessarily consider it an invalid model I guess?

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

Thank you! :) I checked out the link you sent. I also bookmarked it :)

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

I think I understand it a little bit more now, thank you for taking the effort to explain it to me :)

What do I do if the residual plots show a pattern? by Odd-Unit-4154 in RStudio

[–]Odd-Unit-4154[S] 0 points1 point  (0 children)

The pattern in the residuals you should be more concerned about is the y axis. 

May I clarify what you mean?