Hallo alle,
Ich möchte ein Skript zur Zuverlässigkeitsschätzung erstellen. Eine meiner Aufgaben ist es, das geschätzte Quantil/die Wahrscheinlichkeit zu bewerten.
Wenn ich in diesen Ausdrücken (siehe Code unten) alle Kategorien explizit mit list aufliste, wie z. B. {0, 1, 2, 3}, funktioniert der Ausdruck einwandfrei. Wenn ich jedoch die Variable für die Liste verwende, dann die Variable verwende, anstatt die Liste explizit in den Code zu schreiben, funktioniert der Ausdruck nicht.
Hier ist ein Beispiel
// The following code works fine<BR />Lognormal Estimate Probability( Profile, {1000}, {0 ,1, 2, 3} )<BR /><BR />// The following code does NOT work<BR />list_Category_num = {0 ,1, 2, 3}
Lognormal Estimate Probability( Profile, {1000}, list_Category_num )
Hier ist der vollständige Code:
Fit Life by X(
// Set distribution and parameters
Distribution( Lognormal ),
Nested Model Tests( Location and Scale ),
Y( :ResponseVariable ),
X( :Category ),
Censor( :Censor ),
Censor Code( 1 ),
// Fit Lognormal and set confidence interval
<<FIT lognormal=""></FIT>