Changeset 973
- Timestamp:
- 04/30/12 20:46:05 (13 months ago)
- Location:
- MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics
- Files:
-
- 10 modified
-
ClevelandPlotForDataframe.r (modified) (1 diff)
-
DensityHistogramForDataframe.r (modified) (1 diff)
-
FitGAMForDataframe.r (modified) (1 diff)
-
FitGLMForDataframe.r (modified) (1 diff)
-
FitLMEForDataframe.r (modified) (1 diff)
-
FitTreeModelForDataframe.r (modified) (1 diff)
-
PerfPlotForBinaryModel.r (modified) (1 diff)
-
PredictLMForArcGISRasters.r (modified) (1 diff)
-
ROCPlotForBinaryModel.r (modified) (1 diff)
-
ScatterplotMatrixForDataframe.r (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/ClevelandPlotForDataframe.r
r818 r973 20 20 ClevelandPlot <- function(df, transforms=NULL) 21 21 { 22 library(stats) 23 22 24 # Apply the transforms (if any). 23 25 -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/DensityHistogramForDataframe.r
r815 r973 20 20 DensityHistogram <- function(df, densityField, transform=NULL, categoryField=NULL, .legend=NULL) 21 21 { 22 library(stats) 23 22 24 ylim <- c(0, 0) 23 25 -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/FitGAMForDataframe.r
r841 r973 20 20 FitGAMForDataframe <- function(f, d, fam, rPackage, outputModelFile, method=NULL, optimizer=NULL, xVar=NULL, yVar=NULL, zVar=NULL, mVar=NULL, coordinateSystem=NULL, selectionMethod=NULL, logSelectionDetails=TRUE, writeSummaryFile=TRUE, writeDiagnosticPlots=TRUE, writeTermPlots=TRUE, partial.resid=FALSE, xAxis=TRUE, commonScale=TRUE, plotFileFormat="png", res=1000.0, width=3000.0, height=3000.0, pointSize=10.0, bg="white") 21 21 { 22 library(stats) 23 22 24 message(sprintf("Fitting the GAM using the %s package...", rPackage)) 23 25 library(rPackage, character.only=TRUE) -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/FitGLMForDataframe.r
r947 r973 27 27 28 28 # Fit the model. 29 29 30 library(stats) 30 31 message("Fitting the GLM...") 31 32 model <- glm(f, data=na.omit(d), family=fam) -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/FitLMEForDataframe.r
r841 r973 20 20 FitLMEForDataframe <- function(fixed, data, outputModelFile, random, correlation="NULL", method=NULL, xVar=NULL, yVar=NULL, zVar=NULL, mVar=NULL, coordinateSystem=NULL, writeSummaryFile=TRUE, writeDiagnosticPlots=TRUE, plotFileFormat="png", res=1000.0, width=3000.0, height=3000.0, pointSize=10.0, bg="white") 21 21 { 22 library(stats) 23 22 24 # Fit the model. 23 25 -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/FitTreeModelForDataframe.r
r841 r973 20 20 FitTreeModelForDataframe <- function(f, d, outputModelFile, method, allowMissingCovariates=TRUE, minSplit=20, minBucket=7, cp=0.01, maxCompete=4, maxSurrogate=5, useSurrogate=2, surrogateStyle=0, xval=10, maxDepth=30, pruningMethod=NULL, pruningCP=NULL, xVar=NULL, yVar=NULL, zVar=NULL, mVar=NULL, coordinateSystem=NULL, writeSummaryFile=TRUE, writeDiagnosticPlots=TRUE, writeTreePlot=TRUE, writePrunedTreePlot=TRUE, plotFileFormat="png", res=1000, width=3000, height=3000, pointSize=10, bg="white", treePlotType=0, extra=1, percentage=TRUE, under=TRUE, clipRightLabels=TRUE, fallenLeaves=FALSE, branchType=0, branch=0.2, uniform=TRUE, digits=2, varlen=0, faclen=0, cex=NULL, tweak=1, compress=TRUE, ycompress=TRUE) 21 21 { 22 library(stats) 22 23 library(rpart) 23 24 library(rpart.plot) -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/PerfPlotForBinaryModel.r
r815 r973 20 20 PerfPlotForBinaryModel <- function(predictedValues, actualValues, measure1, measure2="cutoff", summaryStats=NULL, .title=NULL) 21 21 { 22 library(stats) 23 22 24 # Create the prediction object. 23 25 -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/PredictLMForArcGISRasters.r
r835 r973 20 20 PredictLMForArcGISRasters <- function(model, rPackage, rastersForPredictors, outputResponseFile, outputErrorFile=NULL, ignoreOutOfRangeValues=FALSE, chunks=NULL) 21 21 { 22 library(stats) 23 22 24 # Look up the min and max values for each predictor from the data 23 25 # that was used to fit the model. -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/ROCPlotForBinaryModel.r
r815 r973 20 20 ROCPlotForBinaryModel <- function(predictedValues, actualValues, cutoff="automatic", cutoffValue=NULL, colorize=TRUE, .title=NULL, summaryFile=NULL, bg="white") 21 21 { 22 library(stats) 23 22 24 # Create the prediction object. 23 25 -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Statistics/ScatterplotMatrixForDataframe.r
r844 r973 20 20 ScatterplotMatrix <- function(df, transforms=NULL, .diag=NULL, lower=NULL, upper=NULL) 21 21 { 22 library(stats) 23 22 24 panel.hist <- function(x, ...) 23 25 {
