Skip to content

Commit

Permalink
make design variable factor
Browse files Browse the repository at this point in the history
  • Loading branch information
richardli committed Aug 14, 2024
1 parent 3227b06 commit ef4654b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/fitspace.R
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ smoothSurvey <- function(data, geo = NULL, Amat = NULL, region.list = NULL, X =
data$region0 <- factor(data$region0, levels = colnames(Amat))
if(svy){
data$weights0 <- data[, weightVar]
data$strata0 <- data[, strataVar]
data$strata0 <- factor(data[, strataVar])
}
}

Expand Down

0 comments on commit ef4654b

Please sign in to comment.