Posts by Naomi • 353 points
8 posts
-
2
votes1
answer44
viewsQ: Reverse transformation in R to var continues with max = Inf
I have the following var continuous: > summary(banco1$rac) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 0.000 5.077 6.694 17.380 8.728 4917.000 465 This var does not have normal distribution and so…
-
4
votes1
answer688
views -
2
votes1
answer125
viewsQ: How to create a factor variable from other factors?
I would like to create a nominal variable X (factor) in my data.frame from two other existing nominal variables Renda and Escolaridade: Renda Escolaridade X baixa fund. incomp Sim inter superior Nao…
-
1
votes1
answer1431
viewsQ: How to stratify/divide a data.frame into categories of a variable in R?
I am running a linear regression model on R and would like to perform stratified analysis according to categories of a variável X with 4 categories (X1, X2, X3 and X4). I thought I’d stratify the…
-
5
votes2
answers726
viewsQ: How to rename the database (Rdata) in R?
I have the following situation: I need to merge two banks. The name of both the database files are: banco2.RData and banco2_2.rdata However, when I open the banks in the R they have the same name:…
-
2
votes2
answers251
viewsQ: Normality test for a sample of 12 to 15 thousand observations - R
Does anyone know of a normality test that can be estimated (in R) for samples between 12 to 15,000 observations? The Shapiro.test should have sample size between 3 and 5000, not apply to my sample.…
-
4
votes1
answer307
viewsQ: Barplot (bar graph) of numerical versus categorical variable in R
How to plot a bar graph on the R in which the eixo x I have a categorical variable (with 4 categories: frequent, sometimes rare, never) and in eixo y the average of a numeric variable (Y=0:13)? How…
-
4
votes2
answers12366
viewsQ: How to sum the values of selected columns of each observation (row) in R?
I have a database with 10,000 observations (individuals/lines). I want to add the values of three variables (columns) for each individual (row). Ex.: x1 x2 x3 x4 x5 x6 1 0 1 0 40 45 76 2 1 1 0 31 86…