Displaying 2 results from an estimated 2 matches for "parprob".
Did you mean:
parprobs
2007 Feb 18
3
User defined split function in rpart
Dear R community,
I am trying to write my own user defined split function for rpart. I read
the example in the tests directory and I understand the general idea of the
how to implement user defined splitting functions. However, I am having
troubles with addressing the data frame used in calling rpart in my split
functions.
For example, in the evaluation function that is called once per node,
2009 Mar 26
2
loading and manipulating 10 data frames-simplified
...feet
Bin1_TAZvacant=Bin1_main[[3]]*43560
#Sums each parcel acreage data of the bin
Bin1Acres_sum=sum(Bin1_Acres)
#Creates data frame of cumlative percentages of each parcel of bin
Bin1_cumper=cumsum(Bin1_Acres/Bin1Acres_sum)
#Calculates the probability of choosing particular parcel from bin
Bin1_parprob=abs(1-Bin1_cumper)
#Combines parcel acreage data and cumlative percentage data
Bin1Main.data = cbind(Bin1_Acres,Bin1_parprob,Bin1_TAZ,Bin1_TAZvacant)
#Bin 2
#-------
#Loads bin data frame from csv files with acres and TAZ data
Bin2_main <-
read.csv(file="I:/Research/Samba/urb_transport...