Package edu.cmu.tetrad.sem
Class SemPm
java.lang.Object
edu.cmu.tetrad.sem.SemPm
- All Implemented Interfaces:
Pm
,TetradSerializable
,Serializable
Parametric model for Structural Equation Models.
Note: Could not get a copy constructor to work properly, so to copy SemPm objects, use object serialization--e.g. java.rmu.MarshalledObject.
- Version:
- $Id: $Id
- Author:
- Donald Crimbchin, josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fixLatentErrorVariances.void
fixOneLoadingPerLatent.getCoefficientParameter
(Node nodeA, Node nodeB) getCoefficientParameter.getCovarianceParameter
(Node nodeA, Node nodeB) getCovarianceParameter.int
getDof()
getDof.getFreeParameters.getGraph()
Getter for the fieldgraph
.getLatentNodes.getMeanParameter
(Node node) getMeanParameter.getMeasuredNodes.String[]
getMeasuredVarNames.getParamComparison.getParameter
(Node nodeA, Node nodeB) getParameter.getParameter
(String name) getParameter.Getter for the fieldparameters
.Getter for the fieldvariableNodes
.getVarianceParameter
(Node node) Return the parameter for the variance of the error term for the given node, which is the variance of the node if the node is an error term, and the variance of the node's error term if not.static SemPm
Generates a simple exemplar of this class to test serialization.void
setParamComparison
(Parameter a, Parameter b, ParamComparison comparison) Sets the comparison of parameter a to parameter b.toString()
toString.
-
Constructor Details
-
SemPm
-
SemPm
-
SemPm
-
-
Method Details
-
serializableInstance
-
fixLatentErrorVariances
public void fixLatentErrorVariances()fixLatentErrorVariances.
-
fixOneLoadingPerLatent
public void fixOneLoadingPerLatent()fixOneLoadingPerLatent.
-
getGraph
Getter for the field
graph
.- Returns:
- the structural model graph this SEM PM is using.
-
getParameters
-
getVariableNodes
-
getMeasuredNodes
-
getLatentNodes
-
getParameter
-
getParameter
-
getVarianceParameter
-
getCovarianceParameter
-
getCoefficientParameter
-
getMeanParameter
-
getMeasuredVarNames
getMeasuredVarNames.
- Returns:
- the list of measured variable names in the order in which they appear in the list of nodes. (This order is fixed.)
-
getParamComparison
getParamComparison.
-
setParamComparison
Sets the comparison of parameter a to parameter b.- Parameters:
a
- aParameter
objectb
- aParameter
objectcomparison
- aParamComparison
object
-
getFreeParameters
-
getDof
public int getDof()getDof.
- Returns:
- the degrees of freedom for the model.
-
toString
-