search for: rd_2

Displaying 2 results from an estimated 2 matches for "rd_2".

Did you mean: rd2
2012 Sep 11
4
R calculates small numbers, where the result should be zero
Hi all, my problem is that R does wrong calculations, when the result should be zero. I have the following code: RD_Var1 <- ((0.1*(1-0.1))/100)+((0.2*(1-0.2))/100) RD_Var2 <- ((0.1*(1-0.1))/100)+((0.2*(1-0.2))/100) RD_1 <- 0.1-0.2 RD_1 RD_2 <- 0.1-0.2 FEM_Eff_RD <- ((1/RD_Var1)*RD_1+(1/RD_Var2)*RD_2)/(1/RD_Var1+1/RD_Var2) Q_RD <- 1/RD_Var1*((RD_1-FEM_Eff_RD)^2)+1/RD_Var2*((RD_2-FEM_Eff_RD)^2) Q_RD My result is: 1.540744e-31 When I put the calculated numbers directly into the last formula, I get zero, which is the correc...
2008 Mar 06
1
parser failed on correct formula (PR#10901)
...om: (NULL) (92.112.140.118) > as.formula ("Something~ Ps_1+GIs_1+Es_1+RPs_1+Cs_1+IGs_1+Vs_1+Rs_1+MCs_1+TRs_1+VBs_1+Fs_1+Pd_1+GId_1+Ed_1+RPd_1+Cd_1+IGd_1+Vd_1+Rd_1+MCd_1+TRd_1+VBd_1+Fd_1+Ps_2+GIs_2+Es_2+RPs_2+Cs_2+IGs_2+Vs_2+Rs_2+MCs_2+TRs_2+VBs_2+Fs_2+Pd_2+GId_2+Ed_2+RPd_2+Cd_2+IGd_2+Vd_2+Rd_2+MCd_2+TRd_2+VBd_2+Fd_2+COM1_median+H1_median+H1E_median+H1I_median+H1D_median+H1DI_median+H1DE_median+H1S_median+H1SI_median+H1SE_median+F1_median+F1I_median+F1E_median+F1D_median+F1DI_median+F1DE_median+F1S_median+F1SI_median+F1SE_median+COM2_median+H2_median+H2E_median+H2I_median+H2D_median+H2DI_...