Skip to content

Commit

Permalink
scf draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdamico committed Oct 19, 2023
1 parent 649227d commit 9ab4aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ glm_result <-
summary( glm_result )
mean_net_worth <- scf_MIcombine( with( scf_design , svymean( ~ networth ) ) )

stopifnot( round( coef( mean_net_worth ) / 1000 , 2 ) == 1059.50 )
stopifnot( abs( 23.2 - round( SE( mean_net_worth ) / 1000 , 1 ) ) < 0.1 )
stopifnot( round( coef( mean_net_worth ) / 1000 , 1 ) == 1059.5 )
stopifnot( abs( 23.2 - round( SE( mean_net_worth ) / 1000 , 1 ) ) < 0.5 )
# compute quantile with all five implicates stacked (not the recommended technique)
fake_design <- svydesign( ~ 1 , data = ext_df[ c( 'networth' , 'wgt' ) ] , weights = ~ wgt )

Expand Down

0 comments on commit 9ab4aeb

Please sign in to comment.