Displaying 1 result from an estimated 1 matches for "targetx2sum".
Did you mean:
targetx2sums
2008 Oct 22
0
newbie Syntax questions: Re-Calculating expansion factors
...targets. I'm trying to figure out how to program the subsequent
recalculations in R. I'm thinking that {schematically} it may look
something like this:
TargetX1Sums <- ##{read an external file of totals for tripid_nu/lineon,
How should I format the data?? Dataframe or matrix??}##
TargetX2Sums <- xtabs(~tripid_nu, data= TargetX1Sums)
InitX1Sums <- xtabs(~tripid_nu+lineon, data=SurveyData)
SurveyData$NewX1= ##{some formulation of TargetX1Sums/InitX1Sums,
selecting by tripid_nu/lineon }##
InitX2Sums <- xtabs(NewX1~tripid_nu, data=SurveyData)
SurveyData$NewX2= ##{so...