Vielen Dank für Ihre Antworten.
Ich habe mit beiden Programmen versucht. In R zum Beispiel war ich mit dem Paket library(rriskDistributions)
, speziell etwas wie
## example with only two quantiles
q <- stats::qlnorm(p = c(0.025, 0.975), meanlog = 4, sdlog = 0.8)
old.par <- graphics::par(mfrow = c(2, 3))
get.lnorm.par(p = c(0.025, 0.975), q = q)
get.lnorm.par(p = c(0.025, 0.975), q = q, fit.weights = c(100, 1),
scaleX = c(0.1, 0.001))
get.lnorm.par(p = c(0.025, 0.975), q = q, fit.weights = c(1, 100),
scaleX = c(0.1, 0.001))
get.lnorm.par(p = c(0.025, 0.975), q = q, fit.weights = c(10, 1))
get.lnorm.par(p = c(0.025, 0.975), q = q, fit.weights = c(1, 10))
graphics::par(old.par)
In Stata ich mit GMM bin versucht, basierend auf https://blog.stata.com/2015/12/03/understanding-the-generalized-method-of-moments-gmm-a-simple-example/
matrix I = I(1)
mat lis I
gmm ((y - exp({xb: percentile_10 percentile_20 percentile_25
percentile_30 percentile_50 percentile_60 percentile_75
percentile_90}))/exp({xb:})), instruments(percentile_10
percentile_20 percentile_25 percentile_30 percentile_50 percentile_60
percentile_75 percentile_90) twostep
Hier ist ein erster Versuch GMM zu verwenden, natürlich Ich vermisse etwas.
Die Antwort von Nick Cox war großartig. Ich werde versuchen, meine Daten mit diesem Ansatz anzupassen.
Warum erwähnen Sie R, wenn das eine Stata-Frage zu sein scheint? – lebelinoz
R-Tag wiederhergestellt. –