I have a graph of voltage against current from this I have ran a standard least squares analysis which has a data filter for different target values (I have attached the analysis). I want to plot the value from each target values regression plot back on to the original graph.
Any help is appreciated.
Here is the code for the data fit and standard least squares (not sure if it is useful to answer the question):
Data Table( "Sorted" ) << Data Filter(
Location( {890, 387} ),
Mode( Show( 1 ) ),
Mode( Include( 1 ) ),
Add Filter(
columns( :Segment ),
Where( :Segment == -100 ),
Display( :Segment, N Items(target_values) )
)
);
Data Table( "Sorted" ) << Fit Model(
SendToByGroup( Bygroup Default ),
Y( :VCE ),
By( :Source Table 2 ),
Effects( :ICE ),
Personality( "Standard Least Squares" ),
//Emphasis( "Effect Leverage" ),
Run(
:VCE << {Summary of Fit( 0 ), Analysis of Variance( 0 ),
Parameter Estimates( 0 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
),
Automatic Recalc( 1 )
);