cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-13123%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESpeichern%20Sie%20Parametersch%C3%A4tzungen%20der%20linearen%20Regression%20mit%20nach%20Variable%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13123%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20versuche%2C%20eine%20lineare%20Regression%20von%20zwei%20Spalten%20durchzuf%C3%BChren%2C%20die%20durch%20eine%20dritte%20Spalte%20gruppiert%20sind%2C%20und%20stecke%20fest.%20Ich%20m%C3%B6chte%20eine%20Spalte%20mit%20Steigung%20f%C3%BCr%20diese%20Zeile%20und%20eine%20weitere%20mit%20Achsenabschnitt%20f%C3%BCr%20diese%20Zeile.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EKurzer%20Hintergrund%3A%3C%2FP%3E%0A%3CP%3EIch%20habe%2030.000%20verschiedene%20Formulierungen%2C%20die%20jeweils%20mit%2013%20verschiedenen%20S%C3%A4urekonzentrationen%20getestet%20wurden.%20Ich%20m%C3%B6chte%20die%20Steigung%20des%20pH-Werts%20als%20Funktion%20der%20S%C3%A4urekonzentration%20verstehen.%20F%C3%BCr%20meinen%20Bereich%20(und%20Zweck)%20kann%20ich%20dies%20als%20lineare%20Regression%20durchf%C3%BChren.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMeine%20Datentabelle%20ist%20wie%20folgt%20aufgebaut%2C%20jedoch%20mit%2030.000%20Formelkombinationen%20und%2013%20S%C3%A4urestufen%20f%C3%BCr%20insgesamt%20390.000%20Zeilen.%3C%2FP%3E%0A%3CTABLE%20class%3D%22jiveBorder%22%20style%3D%22border%3A%201px%20solid%20rgb(0%2C%200%2C%200)%3B%20border-image%3A%20none%3B%20width%3A%20100%25%3B%22%20border%3D%221%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3E%3CSTRONG%3EFormel%3C%2FSTRONG%3E%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3E%3CSTRONG%3ES%C3%A4uregehalt%3C%2FSTRONG%3E%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3E%3CSTRONG%3EpH-Wert%3C%2FSTRONG%3E%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CP%3EComboA%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E5%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E6.7%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboB%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E5%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E6%2C75%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboC%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E5%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E6.5%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboA%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E10%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E6.4%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboB%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E10%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E6.45%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIch%20wei%C3%9F%2C%20dass%20ich%20sie%20in%20Fit%20Y%20by%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIch%20habe%20derzeit%20meine%20Tabelle%20nach%20%E2%80%9ES%C3%A4uregehalt%E2%80%9C%20aufgeteilt%2C%20%E2%80%9EpH%E2%80%9C%20aufgeteilt%20und%20%E2%80%9EFormel%E2%80%9C%20beibehalten.%20Ich%20wei%C3%9F%2C%20dass%20ich%20so%20etwas%20habe%20und%20m%C3%B6chte%20eine%20M%C3%B6glichkeit%20finden%2C%20die%20richtigen%20beiden%20Spalten%20auszuf%C3%BCllen.%3C%2FP%3E%0A%3CTABLE%20class%3D%22jiveBorder%22%20style%3D%22border%3A%201px%20solid%20rgb(0%2C%200%2C%200)%3B%20border-image%3A%20none%3B%20width%3A%20100%25%3B%22%20border%3D%221%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3E%3CSTRONG%3EFormel%3C%2FSTRONG%3E%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3EPH%205%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3EpH%2010%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3EPH%2015%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3EpH%2020%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3ENeigung%3C%2FTH%3E%0A%3CTH%20valign%3D%22middle%22%20style%3D%22padding%3A%202px%3B%20text-align%3A%20center%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20background-color%3A%20rgb(102%2C%20144%2C%20188)%3B%22%3EAbfangen%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboA%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboB%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3EComboC%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%3CEM%20style%3D%22font-size%3A%2013.33px%3B%22%3EDaten%3C%2FEM%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22padding%3A%202px%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDie%20erste%20Wahl%20ist%20die%20Verwendung%20einer%20Formel.%20Wenn%20ich%20ein%20Skript%20erstellen%20muss%2C%20kann%20ich%20das%20auch%20tun.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDanke%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13131%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13131%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3EIch%20habe%20die%20folgende%20M%C3%B6glichkeit%20gefunden%2C%20den%20Ausdruck%20zu%20berechnen.%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3ESS_TOT%20%3D%20Summation(%20i%20%3D%201%2C%20N%20Row(%20dt1%20)%2C%20(Column(%20dt1%2C%20k%20)%3CI%3E%20-%20a_mean%3CK%3E)%20%5E%202%20%2F%20N%20Row(%20dt1%20)%20)%3B%3C%2FK%3E%3C%2FI%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3EDie%20Berechnung%20erfolgt%20jedoch%20f%C3%BCr%20alle%20Spalten%20%E2%80%9Ek%E2%80%9C.%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3EGibt%20es%20einen%20Hinweis%2C%20wie%20ich%20eine%20Gruppentrennung%20einbauen%20k%C3%B6nnte%3F%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2013.3333px%3B%22%3ESS_TOT%5Bgp%231%5D%20%2F%20SS_TOT%5Bgp%232%5D%20...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13130%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13130%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Ekomme%20mal%20wieder%20auf%20dieses%20Thema%20zur%C3%BCck.%3C%2FP%3E%3CP%3EIch%20verstehe%20die%20ganze%20Manipulation%20und%20kann%20sie%20auf%20meine%20Daten%20anwenden%2C%20bin%20mir%20aber%20immer%20noch%20sehr%20unklar%20%C3%BCber%20den%20folgenden%20Teil%3A%3C%2FP%3E%3CP%3EBeta%20%3D%20J(ng%2C%202%2C%20.)%3B%3C%2FP%3E%3CP%3Ef%C3%BCr%20(g%3D1%2C%20g%20%26lt%3B%3D%20ng%2C%20g%2B%2B%2C%3C%2FP%3E%3CP%3EthisGroup%20%3D%20Loc(groupID%20%3D%3D%20g)%3B%3C%2FP%3E%3CP%3Ebeta%5Bg%2C%200%5D%20%3D%20Transpose(Inv(xVals%5BthisGroup%2C%200%5D%60*xVals%5BthisGroup%2C%200%5D)*xVals%5BthisGroup%2C%200%5D%60*yVals%5BthisGroup%5D)%3B%3C%2FP%3E%3CP%3E)%3B%3C%2FP%3E%3CP%3EIch%20kann%20nicht%20herausfinden%2C%20was%20passiert%2C%20au%C3%9Fer%20dass%20eine%20Beta-Matrix%20erstellt%20und%20alle%20Daten%20in%20einer%20neuen%20Tabelle%20ersetzt%20werden%20...%3C%2FP%3E%3CP%3EK%C3%B6nnten%20Sie%20mir%20bitte%20helfen%2C%20diesen%20Punkt%20zu%20verstehen%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13129%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13129%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20werde%20es%20unter%20Ber%C3%BCcksichtigung%20Ihres%20letzten%20Kommentars%20%C3%BCberpr%C3%BCfen.%20Danke%2C%20Ian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13128%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13128%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESobald%20Sie%20die%20angepassten%20Koeffizienten%20f%C3%BCr%20jede%20Gruppe%20haben%20(wie%20oben)%2C%20k%C3%B6nnen%20Sie%20die%20vorhergesagten%20Werte%20und%20damit%20die%20Residuen%20und%20die%20Residualsumme%20der%20Quadrate%20(f%C3%BCr%20jede%20Gruppe)%20erhalten.%20Die%20Gesamtsumme%20der%20Quadrate%20(f%C3%BCr%20jede%20Gruppe)%20ist%20ebenfalls%20einfach%2C%20sodass%20Sie%20dann%20alles%20haben%2C%20was%20Sie%20brauchen%3CA%20href%3D%22https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCoefficient_of_determination%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%20R%20im%20Quadrat%3C%2FA%3E%20(f%C3%BCr%20jede%20Gruppe).%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBedenken%20Sie%20jedoch%2C%20dass%20es%20l%C3%A4nger%20dauert%2C%20je%20mehr%20%C3%84nderungen%20Sie%20an%20der%20JSL%20vornehmen%20(in%20diesem%20Fall%20jedoch%20immer%20noch%20schneller%20als%20bei%20Verwendung%20der%20Plattform).%20Nat%C3%BCrlich%20muss%20auch%20jemand%20den%20Code%20schreiben%20und%20validieren!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13127%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13127%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIan%3C%2FP%3E%3CP%3EDanke%2C%20das%20ist%20ein%20sch%C3%B6ner%20Ansatz%20mit%20Matrix.%3C%2FP%3E%3CP%3EGibt%20es%20eine%20M%C3%B6glichkeit%2C%20auch%20den%20Rsquare%20zu%20bekommen%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13126%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13126%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EZuf%C3%A4lligerweise%20wollte%20ich%20gerade%20darauf%20hinweisen%2C%20dass%20JSL%20viel%20schneller%20ist%2C%20wenn%20Sie%20wissen%2C%20dass%20Sie%20eine%20lineare%20Regression%20ben%C3%B6tigen%20und%20nur%20die%20Parameter%20ben%C3%B6tigen.%20Der%20folgende%20Code%20hat%20auf%20meinem%20Laptop%20etwa%20100%20Sekunden%20gedauert.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3ENamesDefaultToHere%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20Einige%20gruppierte%20Daten%20erstellen%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Egs%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%2010%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%20%2F%2F%20Gruppengr%C3%B6%C3%9Fe%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Eng%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%2030000%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%20%2F%2F%20Anzahl%20der%20Gruppen%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EGruppen-ID%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Aufsteigend%20sortieren%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Wiederholen%3C%2FSPAN%3E%3CSTRONG%3E%20((%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3A%3C%2FSPAN%3E%20ng%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%60%2C%3C%2FSPAN%3E%20gs%3CSTRONG%3E%20))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3ExVals%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20J%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20NRow%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Gruppen-ID%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Zuf%C3%A4lligNormal%3C%2FSPAN%3E%3CSTRONG%3E%20())%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EyVals%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20J%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20NRow%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Gruppen-ID%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Zuf%C3%A4lligNormal%3C%2FSPAN%3E%3CSTRONG%3E%20())%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20Geben%20Sie%20die%20Daten%20in%20eine%20Tabelle%20ein%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Edt1%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20NeueTabelle%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%E2%80%9EGruppierte%20Regressionsdaten%E2%80%9C%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22Gruppe%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Numerisch%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Nominell%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Werte%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Gruppen-ID%3CSTRONG%3E%20))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22X%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Numerisch%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Kontinuierlich%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Werte%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20xVals%3CSTRONG%3E%20))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E2%80%9Ey%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Numerisch%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Kontinuierlich%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Werte%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20yVals%3CSTRONG%3E%20))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20Entkommentieren%20Sie%20diesen%20Block%2C%20um%20Fit%20Y%20By%20X%20f%C3%BCr%20die%20Anpassung%20zu%20verwenden%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F*%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20Y%20an%20X%20anpassen%20verwenden%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3Efxy%20%3D%20dt1%20%26lt%3B%26lt%3B%20Bivariate(Y(%20%3Ay%20)%2C%20X(%20x%20)%2C%20Fit%20Line(%20%7BLine%20Color(%20%7B208%2C%2064%2C%2086%7D%20)%7D%20)%2C%20By(%3AGroup))%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20Holen%20Sie%20sich%20die%20angepassten%20Parameter%20in%20eine%20Tabelle%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20(Um%20dies%20interaktiv%20zu%20tun%2C%20klicken%20Sie%20mit%20der%20rechten%20Maustaste%20auf%20eine%20beliebige%20Tabelle%20mit%20Parametersch%C3%A4tzungen%20im%20Bericht%20und%20w%C3%A4hlen%20Sie%20%E2%80%9EKombinierte%20Datentabelle%20erstellen%E2%80%9C).%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3EfxyRep%20%3D%20fxy%20%26lt%3B%26lt%3B%20Report%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3Edt2%20%3D%20fxyRep%5B1%5D%5BTableBox(3)%5D%20%26lt%3B%26lt%3B%20makeCombinedDataTable%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20dt2%20teilen%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3Edt3%20%3D%20dt2%20%26lt%3B%26lt%3B%20Split(Split%20By(%20%3ATerm%20)%2C%20Split(%20%3AEstimate%20)%2C%20Group(%20%3AGroup%20)%2C%20Remaining%20Columns(%20Drop%20All%20))%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3Edt3%20%26lt%3B%26lt%3B%20setName(%22Parametersch%C3%A4tzungen%20aus%20der%20Anpassung%20von%20Y%20an%20X%22)%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3EClose(dt2%2C%20noSave)%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E*%2F%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%2F%20F%C3%BChren%20Sie%20die%20lineare%20Regression%20in%20JSL%20unter%20Umgehung%20der%20Plattform%20durch.%20.%20.%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20(1)%20Holen%20Sie%20sich%20die%20Daten%20aus%20der%20Tabelle%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23011993%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3ExVals%3C%2FSPAN%3E%20%3D%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Spalte%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20dt1%3C%2FSPAN%3E%20%2C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22X%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%26lt%3B%26lt%3B%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSTRONG%3E%20getAsMatrix%3C%2FSTRONG%3E%20%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23011993%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3EyVals%3C%2FSPAN%3E%20%3D%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Spalte%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20dt1%3C%2FSPAN%3E%20%2C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E2%80%9Ey%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%26lt%3B%26lt%3B%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSTRONG%3E%20getAsMatrix%3C%2FSTRONG%3E%20%3B%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EGruppen-ID%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Spalte%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20dt1%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22Gruppe%22%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CSTRONG%3E%20getAsMatrix%3C%2FSTRONG%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20(2)%20F%C3%BCge%20den%20Einheitsvektor%20zur%20Designmatrix%20hinzu%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3ExVals%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20J%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20NRow%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20xVals%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%7C%7C%3C%2FSPAN%3E%20xVals%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20(3)%20F%C3%BChren%20Sie%20die%20lineare%20Regression%20f%C3%BCr%20jede%20Gruppe%20durch%20und%20speichern%20Sie%20die%20Ergebnisse%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EBeta%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20J%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20ng%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%202%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%20.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3Ef%C3%BCr%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20G%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20G%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%3D%3C%2FSPAN%3E%20ng%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20G%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2B%2B%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3Ediese%20Gruppe%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Ort%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Gruppen-ID%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3D%3C%2FSPAN%3E%20G%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EBeta%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20G%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%200%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Transponieren%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Inv%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20xVals%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20diese%20Gruppe%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%200%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%60*%3C%2FSPAN%3E%20xVals%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20diese%20Gruppe%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%200%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20%5D)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20*%3C%2FSPAN%3E%20xVals%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20diese%20Gruppe%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%200%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%60*%3C%2FSPAN%3E%20yVals%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20diese%20Gruppe%3CSTRONG%3E%20%5D)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23008f00%3B%22%3E%2F%2F%20(4)%20Erstellen%20Sie%20die%20Ergebnistabelle%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3Edt4%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20AlsTabelle%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Beta%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3Edt4%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CSTRONG%3E%20Name%20einsetzen%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%E2%80%9EParametersch%C3%A4tzungen%20von%20JSL%E2%80%9C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ESpalte%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20dt4%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%20%E2%80%9ESpalte1%E2%80%9C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CSTRONG%3E%20Name%20einsetzen%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%22Abfangen%22%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23011993%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ESpalte%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20dt4%3C%2FSPAN%3E%20%2C%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E2%80%9ESpalte2%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%26lt%3B%26lt%3B%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSTRONG%3E%20Name%20einsetzen%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22X%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13125%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13125%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EPeters%20Drehbuch%20wird%20Ihnen%20gute%20Dienste%20leisten.Als%20Referenz%3A%20Wenn%20Sie%20dies%20jedoch%20mit%20JMP%20und%20nicht%20mit%20JSL%20tun%20w%C3%BCrden%20(es%20ist%20oft%20ein%20Zeitaufwand%2C%20je%20nachdem%2C%20ob%20es%20sich%20um%20eine%20einmalige%20Analyse%20handelt%20oder%20nicht)%2C%20dann%20k%C3%B6nnen%20Sie%2C%20wenn%20Sie%20Ihre%20y-mal-x-Analyse%20anpassen%2C%20%E2%80%9E%20%C3%9Cbertragen%20Sie%20Ihre%20Anpassungslinie%2C%20holen%20Sie%20sich%20bei%20Bedarf%20eine%20Tasse%20Kaffee.%20Wenn%20JMP%20mit%20der%20Ausf%C3%BChrung%20fertig%20ist%2C%20klicken%20Sie%20mit%20der%20rechten%20Maustaste%20auf%20eine%20der%20Parametersch%C3%A4tzungstabellen%20und%20w%C3%A4hlen%20Sie%20%E2%80%9EKombinierte%20Datentabelle%20erstellen%E2%80%9C%2C%20um%20eine%20Tabelle%20mit%20den%20Sch%C3%A4tzungen%20zu%20erhalten.So%20f%C3%BChren%20Sie%20Peters%20Skript%20ohne%20das%20Skript%20aus.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-13124%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Lineare%20Regression%20des%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-13124%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDen%20gr%C3%B6%C3%9Ften%20Teil%20des%20relevanten%20Codes%20habe%20ich%20dem%20Beitrag%20von%20Ian%20Cox%20entnommen%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Fmessage%2F215121%23215121%22%20target%3D%22_blank%22%3E%20Hier%3C%2FA%3E%20.Dadurch%20wird%20die%20Analyse%20durchgef%C3%BChrt%20und%20anschlie%C3%9Fend%20alle%20Steigungen%20und%20Schnittpunkte%20in%20eine%20Tabelle%20eingetragen.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3Edt%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3E%20Neuer%20Tisch%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%22Beispieldaten%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Zeilen%20hinzuf%C3%BCgen%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%206%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%22Formel%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Charakter%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Nominell%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EWerte%20festlegen%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%7B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboA%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboC%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboB%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboC%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboA%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EComboB%E2%80%9C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20%7D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9ES%C3%A4uregehalt%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Numerisch%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Kontinuierlich%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3E%20Format%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%22Am%20besten%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%2012%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EWerte%20festlegen%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%205%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%2015%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%205%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%205%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%2010%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20teal%3B%22%3E%2010%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20%5D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3ENeue%20Spalte%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%E2%80%9EpH%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Numerisch%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Kontinuierlich%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3E%20Format%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20purple%3B%22%3E%20%22Am%20besten%22%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%2012%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EWerte%20festlegen%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%206.7%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%204.8%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%206%2C75%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%206.5%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%206.4%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20teal%3B%22%3E%206.45%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20%5D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20green%3B%22%3E%2F%2F%20F%C3%BChren%20Sie%20%E2%80%9EY%20an%20X%20anpassen%E2%80%9C%20aus%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3Ebv%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20dt%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20Bivariat%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20(%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EY%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20pH-Wert%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EX%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20S%C3%A4uregehalt%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3ELinie%20anpassen%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%7B%3C%2FSTRONG%3E%20Linienfarbe%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%7B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20213%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20teal%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%2072%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20teal%3B%22%3E%2087%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20%7D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20)%7D%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EVon%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3A%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20Formel%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSTRONG%20style%3D%22color%3A%20black%3B%20font-family%3A%20'Courier%20New'%3B%22%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20green%3B%22%3E%2F%2F%20Ein%20Verweis%20auf%20die%20Berichtsschicht%3A%20bivREp%20ist%20auch%20eine%20Liste%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3EbivRep%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20bv%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20navy%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20Bericht%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20green%3B%22%3E%2F%2F%20%E2%80%9EKombinierte%20Datentabelle%20erstellen%E2%80%9C%20vermeidet%2C%20dass%20an%20jedes%20Element%20in%20%E2%80%9EbivRep%E2%80%9C%20eine%20Nachricht%20gesendet%20werden%20muss.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3Edt2%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20bivRep%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20teal%3B%22%3E%201%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20%5D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20%230000dd%3B%22%3E%20TableBox%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20(%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20teal%3B%22%3E%203%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20black%3B%22%3E%20)%5D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22color%3A%20navy%3B%20font-family%3A%20'Courier%20New'%3B%22%3E%20Erstellen%20Sie%20eine%20kombinierte%20Datentabelle%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Courier%20New'%3B%20color%3A%20navy%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-842989%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBetreff%3A%20Lineare%20Regression%20eines%20Datensatzes%20nach%20einer%20Spalte%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-842989%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDas%20Ausf%C3%BChren%20von%20JSL%20ist%20sehr%20n%C3%BCtzlich%20f%C3%BCr%20gro%C3%9Fe%20Datens%C3%A4tze%20und%20eine%20gro%C3%9Fe%20Anzahl%20von%20%23groupIDs.%20Gibt%20es%20eine%20M%C3%B6glichkeit%2C%20%C3%BCber%20nicht%20numerische%20groupIDs%20zu%20iterieren%3F%3C%2FP%3E%3CP%3EUnd%20nat%C3%BCrlich%20wird%20auch%20eine%20Spalte%20zum%20Speichern%20der%20nicht%20numerischen%20Gruppen-ID%20ben%C3%B6tigt.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
clausa
Level III

Save Parameter Estimates of Linear Regression with by Variable

I am trying to do a linear regression of 2 columns as grouped by a 3rd column and am stuck. I want a column with slope for that row, and another with intercept for that row.

 

Short background:

I have 30k different formulations that have each been tested with 13 different levels of an acid. I want to understand the slope of the pH as a function of acid concentration. For my range (and purpose) I can do this as a linear regression.

 

My data table is set up such as this, but with 30k Formula Combos and 13 acid levels for a total of 390k rows.

Formula Acid Level pH

ComboA

5 6.7
ComboB 5 6.75
ComboC 5 6.5
ComboA 10 6.4
ComboB 10 6.45

 

I know that I can plot them in Fit Y by X, group the data, and then add linear fits but that 1) takes forever with 30k groups and 2) is a pain to pulls the slopes out of that report

 

I current have split my table by "Acid Level", splitting "pH", and keeping "Formula". I know have something like this, and want a way to fill in the right 2 columns.

Formula ph 5 ph 10 ph 15 ph 20 Slope Intercept
ComboA data data data data    
ComboB data data data data    
ComboC data data data data    

 

First preference is to do with a formula. If I need to do a script, I can do that as well.

 

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions
pmroz
Super User

Re: Linear Regression of Data Set by a Column

Got most of the relevant code from Ian Cox's posting here.  This will do the analysis and then put all of the slopes and intercepts into a table.

dt = New Table( "Sample Data", Add Rows( 6 ),

    New Column( "Formula", Character, Nominal,

        Set Values( {"ComboA", "ComboC", "ComboB", "ComboC", "ComboA", "ComboB"} )

    ),

    New Column( "Acid Level", Numeric, Continuous, Format( "Best", 12 ),

        Set Values( [5, 15, 5, 5, 10, 10] )

    ),

    New Column( "pH", Numeric, Continuous, Format( "Best", 12 ),

        Set Values( [6.7, 4.8, 6.75, 6.5, 6.4, 6.45] )

    )

);

// Run Fit Y by X

bv = dt << Bivariate(

    Y( :pH ),

    X( :Acid Level ),

    Fit Line( {Line Color( {213, 72, 87} )} ),

    By( :Formula )

);

// A reference to the report layer: bivREp is also a list

bivRep = bv << Report;

// 'Make Combined Data Table' avoids having to message to each item in 'bivRep'

dt2 = bivRep [1] [TableBox(3)] << Make Combined Data Table;

View solution in original post

KarenC
Super User (Alumni)

Re: Linear Regression of Data Set by a Column

Peter's script will serve you well.  However, for reference if you were to do this by JMP rather than by JSL (it is often a toss up time wise depending on if it is a one time analysis or not) then if you fit your y-by-x you can "broadcast" your fit line, go get a cup of coffee if needed, then when JMP is done running right click on one of the parameter estimate tables and select "make combined data table" to get a table with the estimates.  Which is how to execute Peter's script without the script.

View solution in original post

9 REPLIES 9
pmroz
Super User

Re: Linear Regression of Data Set by a Column

Got most of the relevant code from Ian Cox's posting here.  This will do the analysis and then put all of the slopes and intercepts into a table.

dt = New Table( "Sample Data", Add Rows( 6 ),

    New Column( "Formula", Character, Nominal,

        Set Values( {"ComboA", "ComboC", "ComboB", "ComboC", "ComboA", "ComboB"} )

    ),

    New Column( "Acid Level", Numeric, Continuous, Format( "Best", 12 ),

        Set Values( [5, 15, 5, 5, 10, 10] )

    ),

    New Column( "pH", Numeric, Continuous, Format( "Best", 12 ),

        Set Values( [6.7, 4.8, 6.75, 6.5, 6.4, 6.45] )

    )

);

// Run Fit Y by X

bv = dt << Bivariate(

    Y( :pH ),

    X( :Acid Level ),

    Fit Line( {Line Color( {213, 72, 87} )} ),

    By( :Formula )

);

// A reference to the report layer: bivREp is also a list

bivRep = bv << Report;

// 'Make Combined Data Table' avoids having to message to each item in 'bivRep'

dt2 = bivRep [1] [TableBox(3)] << Make Combined Data Table;

KarenC
Super User (Alumni)

Re: Linear Regression of Data Set by a Column

Peter's script will serve you well.  However, for reference if you were to do this by JMP rather than by JSL (it is often a toss up time wise depending on if it is a one time analysis or not) then if you fit your y-by-x you can "broadcast" your fit line, go get a cup of coffee if needed, then when JMP is done running right click on one of the parameter estimate tables and select "make combined data table" to get a table with the estimates.  Which is how to execute Peter's script without the script.

ian_jmp
Level X

Re: Linear Regression of Data Set by a Column

Coincidentally, I was just about to point out that, if you know you need linear regression and only want the parameters, then JSL is much faster. The code below took about 100 seconds on my laptop.

NamesDefaultToHere(1);

// Make some grouped data

gs = 10;  // Group size

ng = 30000;  // Number of groups

groupID = SortAscending(Repeat((1::ng)`, gs));

xVals = J(NRow(groupID), 1, RandomNormal());

yVals = J(NRow(groupID), 1, RandomNormal());

// Put the data in a table

dt1 = NewTable("Grouped Regression Data",

  NewColumn("Group", Numeric, Nominal, Values(groupID)),

  NewColumn("x", Numeric, Continuous, Values(xVals)),

  NewColumn("y", Numeric, Continuous, Values(yVals)),

);

// Uncomment this block to use Fit Y By X to do the fitting

/*

// Use Fit Y By X

fxy = dt1 << Bivariate(Y( :y ), X( x ), Fit Line( {Line Color( {208, 64, 86} )} ), By(:Group));

// Get the pfitted parameters into a table

// (To do this interactively, right-click on any Parameter Estimates table in the report and select 'Make Combined Data Table')

fxyRep = fxy << Report;

dt2 = fxyRep[1][TableBox(3)] << makeCombinedDataTable;

// Split dt2

dt3 = dt2 << Split(Split By( :Term ), Split( :Estimate ), Group( :Group ), Remaining Columns( Drop All ));

dt3 << setName("Parameter Estimates from Fit Y By X");

Close(dt2, noSave);

*/

/// Do the linear regression in JSL, bypassing the platform . . .

// (1) Get the data from the table

xVals = Column(dt1, "x") << getAsMatrix;

yVals = Column(dt1, "y") << getAsMatrix;

groupID = Column(dt1, "Group") << getAsMatrix;

// (2) Add the unit vector to the design matrix

xVals = J(NRow(xVals), 1, 1)||xVals;

// (3) Do the linear regression for each group and store the results

beta = J(ng, 2, .);

for (g=1, g <= ng, g++,

  thisGroup = Loc(groupID == g);

  beta[g, 0] = Transpose(Inv(xVals[thisGroup, 0]`*xVals[thisGroup, 0])*xVals[thisGroup, 0]`*yVals[thisGroup]);

);

// (4) Make the table of results

dt4 = AsTable(beta);

dt4 << setName("Parameter Estimates from JSL");

Column(dt4, "Col1") << setName("Intercept");

Column(dt4, "Col2") << setName("x");

KinKame
Level IV

Re: Linear Regression of Data Set by a Column

Ian

thank you that is a nice approach with matrix.

is there a way to get the Rsquare as well?

ian_jmp
Level X

Re: Linear Regression of Data Set by a Column

Once you have the fitted coefficients for each group (as above), you can get the predicted values, and hence residuals and the residual sum of squares (for each group). The total sum of squares (for each group) is easy too, so then you have everything needed to get R squared (for each group).

Bear in mind, though, that as you add more manipulations to the JSL it will take longer (though in this case still quicker than using the platform). Someone also needs to write and validate the code, of course!

KinKame
Level IV

Re: Linear Regression of Data Set by a Column

will check it considering your last comment. Thank you Ian

KinKame
Level IV

Re: Linear Regression of Data Set by a Column

coming back to this topic.

I understand all the manipulation and can aplply to my data but still very unclear about the following part:

beta = J(ng, 2, .);

for (g=1, g <= ng, g++,

  thisGroup = Loc(groupID == g);

  beta[g, 0] = Transpose(Inv(xVals[thisGroup, 0]`*xVals[thisGroup, 0])*xVals[thisGroup, 0]`*yVals[thisGroup]);

);

not able to figure out what is happenning except tht a beta matrix is created and all data replaced in a new table...

could you please help me understand this point?

KinKame
Level IV

Re: Linear Regression of Data Set by a Column

I found following way to calculate expression.

SS_TOT = Summation( i = 1, N Row( dt1 ), (Column( dt1, k ) - a_mean) ^ 2 / N Row( dt1 ) );

but calculation is made for all column "k".

Any hint on how I could include some group separation?

SS_TOT[gp#1] / SS_TOT[gp#2] ...

kasias
Level II

Re: Linear Regression of Data Set by a Column

Running JSL is very useful for large datasets and large # of #groupIDs. Is there a way to iterate over non-numeric groupID.

And of course needs a column to store the non-numeric GroupID also.

Recommended Articles