Displaying 1 result from an estimated 1 matches for "bullsharks".
2012 Mar 15
0
Logistic Regression Coding Help
...= (1) or avoidance behavior) :
Obs Density Visibility Behavior Data
1 1 1 1 0.9
2 2 1 1 0.1
3 1 2 1 0.3
4 2 2 1 0.8
Here was my attempt at coding:
bullsharks <- read.table("bullsharkdata.txt", header=T, as.is=T)
#"bullsharks" is what I named it
bullsharks$Obs
bullsharks$Density
bullsharks$Visibility
bullsharks$Behavior
bullsharks$Data
#or to view all data
bullsharks
library(mlogit)
bullsharks[1:2,]
bullsharks$Density&l...