# data

1. ### How to pick the better model parameter in this example?

Let's say the model is fixed (e.g., a linear model where 5 coefficients need to be fit). Denote the parameter (coefficient) vector as \beta. First, you are given 50 data (X,y) and use them to get a \beta, say \beta_1; Then, you are given additional 50 data (so now you have 100 data) and you...
2. ### Coding Data

I am examining the relationship between employee level of education and the severity of their disciplinary offenses. I coded education categorically as (1=High School, 2=Associates, 3=Bachelors, etc...) Next, I coded disciplinary offenses using the agencies already existing disciplinary...

Hello, I'm new to R so am hoping that this is a trivial question. I am creating an R package, pkge, and in the man/ subdirectory I have a documentation file, pkge.Rd. In this file there is an example (\examples{...}) script. This script needs to be able to load the content of a sample CSV...
4. ### Share your functions & code

I’m starting this thread as a sharing thread. The power of [R] is in building and sharing on one another’s creativity. I’m often amazed at how people have used [R]. Anyway I’m starting this thread because I’ve been playing with special operators. I made a marginal +/- operator and thought...
5. ### Loading Data from Multiple files and saving same graph produced from each file.

Hi, I'm new to R and programming. I don't really know where to start on this. What I'd like to accomplish is having R open a file containing my seperate file names (all .csv files), and then load one file at a time, and produce the same graph from it, and saving it as a pdf but with the same...
6. ### Missing values with Row and Column Totals

Hello everyone, I'm working with government panel data (yearly data of manufacturing industry (row) by continent (column)) that has a lot (about 10%) missing values that appear to be random. However, I do have the row and column totals, and I do have (in many cases), the surrounding years'...
7. ### Passing symlinks to importData() in Splus?

In Splus, read.table(file="mysymlink.csv") does just fine with symlinks for the file argument. On the other hand, importData(file="mysymlink.csv") breaks, giving the following message: Warning: No variables in dataset. NULL data frame with 0 rows Q: How can I get importData() to...
8. ### keeping only certain values of a variable (not manually)

Hi there, I have two data sets. One is a large data set containing a week variable 'wk'. The other has just one variable , 'wk2', which contains values of 'wk' corresponding to rows in the large data set that I'd like to keep, and remove the rest. How can I do this? (without manually...
9. ### Using Kendall test to find correlation between Likert type data

Greetings! I am doing a small experiment and I was wondering if I have the correct method for analysing the data. Two groups of participants (speakers and listeners) comment on a description of a famous person. The speaker creates a description and answers the question: "I think a general...