Suppose I have the variables: groups and values in Table 1. Can someone suggest to me how I can obtain the result of the median of the groups as indicated in the table named "Output":
groups
Output
You can use the function tapply():
output
Thanks Miguel, it works perfectly. Now let me apply it to the real huge dataset :).
I run: install.packages("devtools") in my terminal & get the error message: bash: syntax error near unexpected token `"devtools"'. Any ideas of how I can successfully install this R package...
10 November 2016 4,428 0 View
I'm analyzing some graphs in R, and have an error with "community.to.membership". I get error message "Error: could not find function "community.to.membership", anyone seen it before? When I type...
09 October 2015 6,354 2 View
Suppose I have 3 response variables (Y1, Y2, Y3, which are vectors of count data). Assume I also have multiple co-variates that are both categorical (e.g. X1, X2, X3) and numerical (e.g. Z1, Z2,...
11 December 2014 402 4 View
Suppose I have a table, T3. I would like to find unique values by removing repeated rows (with reversed entries, e.g. row 1 and 4). The final table I need should look like T4. Simply using...
10 November 2014 8,653 3 View
I am computing pccs in R using a dataset "X" of dimension mxp (m>>p). Notably, all goes well when "X" has no missing values (no "NA" in dataset). So far I have tried commands "pcor" and...
06 July 2014 1,319 2 View
I've the data in the "Table" given below (as generated from R-package), does anyone out there know how to get the median values as shown in "output"? I've tried using "tapply" but this only works...
05 June 2014 4,875 1 View
Given a vector, e.g. x
02 March 2014 2,894 5 View
[problem in R]: How can I compute the medians of the rows in the matrix x3; where, e.g. x1
02 March 2014 4,365 2 View
Just loaded, read and worked with ".txt" and ".csv" files in R (no problems), but having trouble loading ".dat" files.
02 March 2014 9,260 8 View
Given the table "Tgiven", I need to compute the median "val_med" of the columns "val1" and "val2", i.e. need to get the table "Trequired" Below is a simple data structure that mimics the more...
02 March 2014 2,266 6 View
Does anyone know of a module for the JAMOVI software that is capable of generating mean separations using the classic letters based on post hoc results (e.g., Tukey test)? If, as I believe, such...
31 July 2024 3,333 4 View
all math can be traversed by code? all math can be translate to code?
26 July 2024 9,530 0 View
I am currently working on a mendelian randomization study, and I have downloaded the datasets needed from the ieu opengwas project (mrcieu.ac.uk) in .vcf format. I do not have access to an R...
19 July 2024 2,342 5 View
One of the papers I read by Toby, where (title of the paper was "R factors in Rietveld analysis: How good is good enough?"), he tells us that to get good chi square value, you must have low Rwp,...
17 July 2024 9,668 4 View
students already took 1. numerical methods 2. programming language 3. Probability and statistics
09 July 2024 6,271 3 View
We have developed an ODE model comprising 25 interrelated equations with common coefficients. This biochemical model, applied in wastewater treatment, is characterized by stiffness. Utilizing the...
06 July 2024 7,077 4 View
Object-Oriented Programming
29 June 2024 4,877 12 View
when designing an e-learning platform what model and programming language do you select?
29 June 2024 7,504 4 View
I ran PCA on 4 variables using the prcomp library. All variables were normalized to have a mean of zero and a standard deviation of one (z-score) before the PCA. prc 1 and I performed a varimax...
26 June 2024 6,792 1 View
What is it's difference between lsoda method in R vs. ODE23 or 45 solver in MATLAB.(especially in wastewater treatment and biochemical processes) I am currently engaged in the development of a...
24 June 2024 9,188 2 View