cost 353 ms
如何在使用 gamlss 擬合分布后轉換數據?

[英]How to transform data after fitting a distribution with gamlss?

我有一個數據集,其中的觀察來自高度不同的群體。 每個組的分布可能截然不同,因此我嘗試使用 fitdistrplus 中的 fitdist 找到最佳分布,然后使用 gamlss package 中的 gamlssML 找到最佳參數。 我的問題是在此步驟之后轉換數據。 對於某些分布,例如 Box-Co ...

In R, how do I plot a Weibull probability density function for right censored data using package fitdistrplus?

[英]In R, how do I plot a Weibull probability density function for right censored data using package fitdistrplus?

我正在嘗試使用 package fitdistrplus在數據直方圖上為右刪失數據疊加 Weibull 概率密度 function (PDF),但一直無法這樣做。 df是一個data.frame ,其中包含一個虛擬數據集,格式為我的較大數據集的格式。 執行上面的腳本會生成下圖。 我已經成功地將 ...

錯誤代碼 100 在 fitdistrplus package 中使用 fitdist 用於 pois 和 nbinom

[英]Error code 100 using fitdist in the fitdistrplus package for pois and nbinom

我正在嘗試對我的數據進行分布( ssdist ; ssi是值),但是我不斷收到下面的錯誤代碼,我不知道為什么。 值得注意的是,錯誤僅針對pois和nbinom拋出,它們是我認為最適合數據的分布。 fitdistrplus::fitdist(ss$ssi[ss$name == s], distr ...

R 中截斷帕累托的形狀估計

[英]Shape estimation in truncated Pareto in R

length(u_NI$k_u) = 637594 我收到了這個錯誤: 問題出在數據集過大還是起始參數上? 可重復的例子: 這是行不通的,我不明白為什么。 這里似乎有問題: argument 'lower' must be positive ...

R 中 Log Pearson Type III 的問題擬合使用矩估計方法

[英]Problem fitting of Log Pearson Type III in R using method of moments estimators

我是 R 的新手,我很難弄清楚如何使用 method = mme 將 Log Pearson Type III 擬合到數據中。 我得到的錯誤是這樣的: 使用method = mle沒有問題,但是我們的研究需要使用矩量法進行參數估計。 預先感謝那些可以提供幫助的人。 ...

tryCatch() 不會抑制錯誤消息

[英]tryCatch() does not suppress the error messages

我想創建一個不打印任何錯誤消息的函數。 假設我有以下數據: library(fitdistrplus) vec <- rnorm(100) 然后下面給出了一個錯誤信息: fitdist(vec, "exp") #> Error in computing default starti ...

如何使用 fitdist 的結果在 R 中創建概率分布?

[英]How can I use the results from fitdist to create a probability distribution in R?

我使用 fitdistrplus package 中的 fitdist 將(伽瑪)分布擬合到我的數據中: fitg <- fitdist(mdt, "gamma") 結果是描述擬合的參數列表。 我想知道是否有一種方法可以使用結果從該分布創建累積分布函數和隨機樣本生成器。 例如,如果用 fit ...

R 中的一個發行版的 MLE:fitdistrplus(SGT 發行版),我該怎么做?

[英]MLE of a distribution in R: fitdistrplus (SGT distribution), how do I do it?

對於返回數據,我正在研究偏度和峰度對 cVaR 計算的重要性。 我們首先比較一些分布,通過使用 R 中的 fitdist() 使用 package "fitdistrplus" 估計分布的參數。 但是,我們希望對不同數量的分布執行此操作(見圖:SGT、GT、SGED、GED、t、norm)。 下 ...

如何使用 gamlss、fitdist 或其他方法將均勻分布轉換為廣義 beta 2 分布?

[英]How to transform an uniform distribution into a generalized beta 2 distribution using gamlss, fitdist or other?

對數學不滿意,只是 R 初學者,我遇到了以下問題: 想象一下,對於變量ya (n=3000),gamslss fitDist function 選擇 GB2 分布,例如 mu=2、sigma=4、nu=4、tau=1。 現在想象一下具有均勻分布的第二個變量 yb (n=800) 問題:轉換yb以使 ...

Highcart R 中的 qqcomp() 和 ppcomp()

[英]qqcomp() and ppcomp() in Highcart R

我正在嘗試在 R 中使用 Highchart package 制作一些圖。 我的圖是 qqcomp() 和 ppcomp(),我想使用 highchart 復制它。 我可以使用 ggplot2 來做到這一點,但我認為它們在 Highchart 中看起來會更好。 這是我的代碼: ...

當參數已知時如何使用 fitdist(帕累托分布)

[英]How to use fitdist when the paramters are already known (Pareto distribution)

我正在對一些數據進行帕累托分布擬合,並且已經估計了數據的最大似然估計。 現在我需要從中創建一個 fitdist(fitdistrplus 庫)對象,但我不確定如何執行此操作。 我需要一個 fitdist 對象,因為我想使用 denscomp 等函數創建 qq、密度等圖。 有人可以幫忙嗎? 我首先計 ...

尋找移位指數分布的起始值的問題

[英]Problem in finding starting values for shifted exponential distribution

我試圖將偏移指數分布擬合到我的數據中,但 fitdist 函數給出的誤差為 100 並且無法估計起始值。 我還使用 plotdist 函數來查找起始值或初始值以擬合分布,並且在迭代過程后我獲得了以下參數 rate = 0.155 shift = 0.00001 的圖,甚至我在 fitdist 中也使 ...

如何返回在 function 中創建的對象並忽略有錯誤/NA 的對象?

[英]How to return objects created in a function and ignore the ones with error/NA?

我已經編輯了我的問題目標我只想保留那些成功創建的對象,而忽略那些拋出錯誤的對象。 例子請注意,這只是一個可重現的示例。 我的原始數據集不同。 以下 function 采用mtcars數據集的任何變量,擬合三個理論分布,然后返回擬合優度統計數據: 例如: 問題某些理論分布無法成功擬合變量, fitd ...

使用 fitdist 在 R 中擬合 Pearson Type III

[英]Fitting of Pearson Type III in R using fitdist

我已經為我的數據擬合了許多分布,但是我在將 Pearson III 型分布擬合到數據時遇到了困難。 我還使用 plotdist 函數來查找起始值或初始值,以便使用迭代方法擬合分布。 從 plotdist 獲得的圖表明,該圖非常適合給定起始值的數據,但 fitdist 函數不起作用並給出 100 的錯 ...

select如何通過fitdisrplus package分配參數?

[英]How to select the distribution parameter through fitdistrplus package?

bootdist()總是用於在fitdis()之后獲取更准確的參數。 如上例, summary(res)提供了幾個參數, res$fitpart$estimate提供了一個參數,應該選擇哪一個? ...

pp plot 非線性的原因

[英]the reason for p-p plot nonlinar

我使用 library(fitdistrplus) package 來擬合數據,如下所示: 以下是 plot 結果:在此處輸入圖像描述我的問題是:x1數據實際上是用rlnorm生成的,但是擬合后,pp plot 不是那么完美,如何解釋這個? 謝謝。 光明 ...

為什么在使用 plotstyle="ggplot" 時 qqcomp 函數中沒有顯示任何點?

[英]Why aren't any points showing up in the qqcomp function when using plotstyle="ggplot"?

我想在一個圖中比較不同分布與我的數據的擬合。 fitdistrplus包中的qqcomp函數幾乎完全符合我的要求。 然而,我唯一的問題是它主要是使用基本 R 繪圖編寫的,而我的所有其他繪圖都是用ggplot2編寫的。 我基本上只是想自定義qqcomp圖,使其看起來像是在ggplot2中ggplot ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM