org.rosuda.JGR.robjects
Class RModel

java.lang.Object
  extended by org.rosuda.JGR.robjects.RModel

public class RModel
extends Object

RModel - This is a simple java-representation of a model in R (currently only lm and glm are implemented) providing several information.

Author:
Markus Helbig RoSuDa 2003 - 2005

Constructor Summary
RModel(String name, String type)
           
 
Method Summary
 String getCall()
          Get call-statement of the model.
 String getData()
          Get data name of model.
 String getFamily()
          Get family type of model.
 Vector getInfo()
          Get information about this model: name, data, type, family, degree-of-freedom, r-square, aic, deviance.
 String getName()
          Get the name of the model.
 String getToolTip()
          Get tooltip-text implementation, shows the call statement.
 String getTypeName()
          Get the type of the model, like lm, glm.
 void setAic(double a)
          Set AIC value of model.
 void setCall(String call)
          Set the call statement from R concerning the model.
 void setData(String d)
          Set data name of model, which means the data the model is based on.
 void setDeviance(double d)
          Set deviance value of model.
 void setDf(int df)
          Set degree of freedom value of model.
 void setFamily(String f)
          Set family name of model, needed with glm-models: binomial, poisson ....
 void setFstat(double f)
          Set F-statistic value of model.
 void setRsquared(double r)
          Set r-square value of the model.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RModel

public RModel(String name,
              String type)
Method Detail

getTypeName

public String getTypeName()
Get the type of the model, like lm, glm.

Returns:
r-class of model

getName

public String getName()
Get the name of the model.

Returns:
name of model

setCall

public void setCall(String call)
Set the call statement from R concerning the model.

Parameters:
call - call-statement

getCall

public String getCall()
Get call-statement of the model.

Returns:
call-statement

getToolTip

public String getToolTip()
Get tooltip-text implementation, shows the call statement.

Returns:
tooltip-text

setRsquared

public void setRsquared(double r)
Set r-square value of the model.

Parameters:
r - r-square value

setDeviance

public void setDeviance(double d)
Set deviance value of model.

Parameters:
d - deviance value

setDf

public void setDf(int df)
Set degree of freedom value of model.

Parameters:
df - degree of freedom value

setAic

public void setAic(double a)
Set AIC value of model.

Parameters:
a - AIC value

setFstat

public void setFstat(double f)
Set F-statistic value of model.

Parameters:
f - F-statistic value

setFamily

public void setFamily(String f)
Set family name of model, needed with glm-models: binomial, poisson ....

Parameters:
f - family name

getFamily

public String getFamily()
Get family type of model.

Returns:
family-type

setData

public void setData(String d)
Set data name of model, which means the data the model is based on.

Parameters:
d - data name

getData

public String getData()
Get data name of model.

Returns:
data-name

getInfo

public Vector getInfo()
Get information about this model: name, data, type, family, degree-of-freedom, r-square, aic, deviance.

Returns:
information

toString

public String toString()
Overrides:
toString in class Object