Fit distribution of data using R

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 พ.ย. 2024

ความคิดเห็น • 44

  • @Alberto-Carreto
    @Alberto-Carreto 3 ปีที่แล้ว +3

    Hello Mr.Kamal,
    Everything works fine,
    except the last part when I try to downloaded fitur and actual
    Very Thankful,
    Alberto

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว

      if you are talking about this error
      > fitur::fit_dist_addin()
      Error in ls(envir = .GlobalEnv)[sapply(ls(envir = .GlobalEnv), function(xChar) { :
      invalid subscript type 'list'
      please note that this function looks for "eligible" objects in the environment. So if the environment don't have pre-specified lists it will give you this error. Hope this helps

  • @firdausharmajati1440
    @firdausharmajati1440 ปีที่แล้ว

    Thank you for the video, it was very helpful 🙏

  • @arnetmitarnetmit9456
    @arnetmitarnetmit9456 2 ปีที่แล้ว

    internet is magic. Thank you for your helpful video.

  • @yousif_alyousifi
    @yousif_alyousifi 2 ปีที่แล้ว +1

    Why did I get this error?
    > library(fitur)
    Error: package or namespace load failed for ‘fitur’ in library.dynam(lib, package, package.lib):
    DLL ‘httpuv’ not found: maybe not installed for this architecture?
    In addition: Warning message:
    package ‘fitur’ was built under R version 4.1.3
    > library(actuar)
    > fitur::fit_dist_addin()
    Error in library.dynam(lib, package, package.lib) :
    DLL ‘httpuv’ not found: maybe not installed for this architecture?

  • @LokdeepTeekas-pj1sm
    @LokdeepTeekas-pj1sm 3 ปีที่แล้ว +2

    This video is so good!! you made everything sound so easy!! Thank you!

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว

      You're so welcome! Thanks a lot for your kind words.

  • @MiladReyhani77
    @MiladReyhani77 2 ปีที่แล้ว +1

    Thank you for the video, it was very helpful.
    I have a basic question though. Imagine I have a dataset and I decide to fit a specific distribution, lets say Weibull, to it. Then, I want to find the extreme values in my data i.e. p-value of

    • @StatPharm
      @StatPharm  2 ปีที่แล้ว

      Why dont you plot a boxplot for your data and check outliers. you can also use hist() or summary(). Sorry for my late reply

  • @MrGamGamer
    @MrGamGamer 2 ปีที่แล้ว +2

    dude feels like he's recording this in a church or in a blacksmith shop or in a middle of a medieval fight with all that background noise

  • @DonJuan247
    @DonJuan247 2 ปีที่แล้ว

    Hello, could you please explain to me how to use another distribution not built in the function, or from another library, i.e. demg from emg library.

  • @dann4179
    @dann4179 3 ปีที่แล้ว

    I really love your videos, very clear and helpful for beginners like me. Just a quick question, when you want to know what distribution your data follows, what do you recommend? Like in my case I have population growth data, some populations look exponential, others looks like a logistic but I am not sure how I would determine my data distribution, thanks!

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว +3

      Thanks a lot for your feedback. please check this playlist th-cam.com/video/bPOmcypgxY8/w-d-xo.html

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว +2

      also try this
      x = rexp(1000, rate = 3)
      fitdist(x, "exp")

  • @worofitri
    @worofitri 2 ปีที่แล้ว

    Hello, I'm a final year student and my thesis is about composite distribution. Did you know how to use "Compdist" package? Because the documentation is so simple, I'm confused when have to input the parameter.
    I hope you can help me. Thank you

  • @dznRefuse
    @dznRefuse 2 ปีที่แล้ว +1

    is there a package where i can also use the pearson III distribution and the Gumbel distribution? all in one dashboard like it is in "fitur"

    • @StatPharm
      @StatPharm  2 ปีที่แล้ว

      thanks for your comment. I don't know really. Please let me know if you find a way to it.

  • @Mohammad_Ali_Khaleel
    @Mohammad_Ali_Khaleel ปีที่แล้ว

    Thank you very much

  • @muhammadabidkhan2759
    @muhammadabidkhan2759 2 ปีที่แล้ว

    This is quantal mapping with Weibull distribution
    Could you please help us with how to solve this problem?
    C and K values are shape and scale values
    V_corr = C_obs [-ln⁡(1-(1- e^(-(V_sim/C_his )^(k_his ) ) )) ]^(1/K_obs )
    Constant values --> C_obs=4.946, K_obs=3.311, C_his= 5.021, K_his= 3.307
    Variable value --> v_sim -> sfcWind
    The variable value is in NC file (.nc)
    I want to calculate by R this equation (Actually this equation I am using to correct my data).
    Thank you and looking forward to hearing positive from you soon.

  • @matheusassi6782
    @matheusassi6782 2 ปีที่แล้ว +1

    Amazing script. This is one of the best statistical scripts in R available online I have ever seen. Is it possible to implement this in a Rcmdr plugin?

    • @StatPharm
      @StatPharm  2 ปีที่แล้ว

      Thanks a lot for your comment. I haven't tried it in Rcmdr. Please try it and let me know

  • @mehmetfatihyildirim3449
    @mehmetfatihyildirim3449 3 ปีที่แล้ว +1

    Thanks for the great tutorial😊!

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว

      Glad it was helpful!

  • @Gassasse
    @Gassasse 3 ปีที่แล้ว +1

    Hi,
    I'm trying to install the 'actuar' package but it doesn't exist. Then, when I'm trying to use fitur::fit_dist_addin(), R comes back to me with an error: "Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
    there is no package called ‘actuar’"; "Warning in install.packages:
    dependency ‘actuar’ is not available". How do you address this issue? PS: my R version is 4.0.3.

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว +1

      Thanks a lot for your feedback. unfortunately, few days ago this error appeared for users who dont have actuar already installed on their systems. I suggest to download it from CRAN and install it manually, you then might need to install dependencies manually as well.

    • @Gassasse
      @Gassasse 3 ปีที่แล้ว

      @@StatPharm Fixed it thank you! I had to download the latest R software :)

    • @dwim7407
      @dwim7407 3 ปีที่แล้ว

      @@Gassasse Hello, I am dealing with the same problem, i want to ask if you dont mind, should I update the version of R for using this actuar package?

    • @Gassasse
      @Gassasse 3 ปีที่แล้ว +1

      @@dwim7407 yep, just install the latest R version and you should be good to go!

    • @dwim7407
      @dwim7407 3 ปีที่แล้ว +1

      @@Gassasse yeah thank you it’s really helpful!! I’ve tried and it works just well 😊,but I need to install rtools too

  • @oluwatoyinoluyinka9659
    @oluwatoyinoluyinka9659 3 ปีที่แล้ว +1

    Thank you

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว

      You're welcome. Thank You for your valuable comment

  • @Jayaug1998
    @Jayaug1998 ปีที่แล้ว

    Is it possible to get p value for distribution fit?

    • @StatPharm
      @StatPharm  ปีที่แล้ว

      would you please clarify with an example?

  • @aimiliosmilo4171
    @aimiliosmilo4171 ปีที่แล้ว

    Very good and informative video. I would be grateful if you could explain how to fit distribution on grouped data. For example if we have tree diameter classes (D in cm) and the correpsonding frequencies (N), how can we fit a distribution in R? THANK YOU !!!
    D N
    2 66
    4 140
    6 115
    8 41
    10 6
    12 6
    14 3

  • @0MVR_0
    @0MVR_0 ปีที่แล้ว

    someone sword fighting in the background

  • @yulinliu850
    @yulinliu850 3 ปีที่แล้ว +1

    Nice. Thanks!

    • @StatPharm
      @StatPharm  3 ปีที่แล้ว

      Our pleasure!

  • @NirajKurmi-tz6tx
    @NirajKurmi-tz6tx ปีที่แล้ว

    Could you upload your script. I didn't find it in the download option.

    • @StatPharm
      @StatPharm  ปีที่แล้ว

      please check the link in video description under the "R script used". I just tried it and the code is downloadable from a box.com link

  • @nour_hisham
    @nour_hisham ปีที่แล้ว

    من وين ؟؟؟