[R] Formatting probability data to produce confusion matrix for binary data for logistric regression

2011-12-12 Thread Sally Ann Sims
Hello R folks, I’m looking to produce a confusion matrix using the command: cmx(PData,threshold=0.49,na.rm=FALSE) for a logistic regression model (1 is habitat, 0 is nonhabitat). To compile my PData data file (csv file) (as in the example above), I’m using the output of the predict(glm)

[R] logistric regression: model revision

2011-11-07 Thread Sally Ann Sims
Hello, I am working on fitting a logistic regression model to my dataset. I removed the squared term in the second version of the model, but my model output is exactly the same. Model version 1: GRP_GLM-glm(HB_NHB~elev+costdis1^2,data=glm_1,family=binomial(link=logit)) summary(GRP_GLM)

[R] Importing all observations and variables from csv file into dataframe

2011-10-17 Thread Sally Ann Sims
Hello, I need some help getting started with data analysis. I’m having trouble getting R to read my data file. I’ve referred to various R help documentation, the website, and FAQs, but I don’t see my situation listed. I saved an Excel file (post-2007 Excel version) of data as a