cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • Use JMP Clinical with CDISC-compliant data. Review studies, ID safety and efficacy signals & communicate findings with interactive graphics. Register to see how. Aug. 27, 2 pm US ET.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
pankajsync
Level II

Slope -Liner regression

I would like to calculate the slope in linear regression fashion. It should be a column formula. And the slope value should be single value (Averaged) for the below table.

 

GroupSubgroupLog[V]Log[T3]Slope
1a1.6094387.953736Calculate slope for 1, a
1a1.6486596.777461
1a1.6863995.296072
1b1.6094388.953736Calculate slope for 1, b
1b1.6486597.777461
1b1.6863996.296072
2a1.60943817.95374Calculate slope for 2, a
2a1.64865916.77746
2a1.68639915.29607
2b1.60943838.95374Calculate slope for 2, b
2b1.64865937.77746
2b1.68639936.29607
4 REPLIES 4

Re: Slope -Liner regression

See the Linear Regression() function in the Help > Scripting Index for your formula. You might need to use a script, though. Subscripting the rows into groups of three might be difficult in a formula.

pankajsync
Level II

Re: Slope -Liner regression

yes aware of this function. But want to want different slopes for different groups.

Combination of Group   and SUBGROUP should have one unique value of slope.

jthi
Super User

Re: Slope -Liner regression

Create new grouping column which is combination of Group and Subgroup to make it a bit easier. Then write a formula which will get values for specific group for LogV and LogT3 (many options for this). After this you can use Linear Regression function to get the estimates for slope. If you really want to see only one value for each group, then add check that if you are on first row of the group -> perform calculations, otherwise return missing.

-Jarmo
pankajsync
Level II

Re: Slope -Liner regression

Forgot to mention. Slope should be Log[T3]/Log[V]

Recommended Articles