Displaying 20 results from an estimated 4000 matches similar to: "How to select a whole column? Thanks!"
2004 Aug 04
1
What's ``impres''?
Dear all,
In one S+ program, I found the following code.
if (impres) cat("blah blah blah \n")
Would someone here like to tell me what's the counterpart in R to
impres in S+?
Thanks in advance!
Best wishes,
Jinsong
=====
(Mr.) Jinsong Zhao
Ph.D. Candidate
School of the Environment
Nanjing University
22 Hankou Road, Nanjing 210093
P.R. China
E-mail: jinsong_zh at yahoo.com
2004 Feb 01
5
Stepwise regression and PLS
Dear all,
I am a newcomer to R. I intend to using R to do stepwise regression and
PLS with a data set (a 55x20 matrix, with one dependent and 19
independent variable). Based on the same data set, I have done the same
work using SPSS and SAS. However, there is much difference between the
results obtained by R and SPSS or SAS.
In the case of stepwise, SPSS gave out a model with 4 independent
2004 Feb 04
1
center or scale before analyzing using pls.pcr
Dear all,
I found pls.pcr package will give different results if the data are
centered and scaled using scale().
I am not sure about when I should scale my data, and whether the
dependent variable should be scaled. If the dependent variable is
scaled, how I give a prediction to the real data?
I appreciate for any suggestions and comments.
Best regards,
Jinsong
=====
(Mr.) Jinsong Zhao
Ph.D.
2010 Feb 17
2
extract the data that match
Hi r-users,
I would like to extract the data that match. Attached is my data:
I'm interested in matchind the value in column 'intg' with value in column 'rand_no'
> cbind(z=z,intg=dd,rand_no = rr)
z intg rand_no
[1,] 0.00 0.000 0.001
[2,] 0.01 0.000 0.002
[3,] 0.02 0.000 0.002
[4,] 0.03 0.000 0.003
[5,] 0.04 0.000 0.003
[6,]
2002 Apr 09
1
write.table
Hello,
When using write.table I am getting two variables pasted together (not
by choice). Has anyone else had this happen?
Specifically, I have the following:
d _ read.dta(paste('/montecarlo/forecast/off/',F,'.dta',sep=''))
write.table(d,file=paste('/montecarlo/forecast/off/csv/',F,'.csv',sep=''),
row.names=FALSE, col.names=FALSE,
2018 May 15
2
Systemfit
OK, Let's try this again! Here is the reproducible script; it is long because I had to copy the panel dataset here. My question is related to systemfit; I don't know how to get the result for the entire panel.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
install.packages("systemfit")
2018 May 15
0
Systemfit
... and the mailing list is picky about attachments... whatever you attached did not conform to the stringent requirements mentioned in the Posting Guide. Pasting the code right into the email is usually safest, though you DO have to post using plain text (as the Posting Guide indicates) or your code may get mangled by the automatic html format removal.
On May 15, 2018 7:04:31 AM PDT, Bert Gunter
2018 May 15
1
Systemfit
Unless there is good reason not to, always cc the list -- there are lots of
smarter folks than I on it who can help.
I may or may not have time to look at this. Hopefully someone else will.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip
2018 May 16
0
Systemfit
Sadly you failed to set your email program to send plain text and the data is corrupted at my end.
I also think you need to reduce the size of the data set... the intent here is to increase your understanding, not debug your particular analysis.
I will say that I am having a very challenging time understanding what you are trying to accomplish though. What are the equations that you think need
2018 May 16
1
Systemfit Question
I can't get my simultaneous equations to work using system fit. Please help.
#Reproducible script
Empdata<- read.csv("/Users/ngwinuiazenui/Documents/UPLOADemp.csv")
View(Empdata)
str(Empdata)
Empdata$gnipc<-as.numeric(Empdata$gnipc)
install.packages("systemfit")
library("systemfit")
pdata <- plm.data(Empdata,
2006 Feb 05
3
reading in a tricky computer program output
Hi R user
I need to read in some values from a computer program output.
I can't change the output format because the developer of the program
doesn't allow to change the format of output.
There are two formats.
First one looks like this
if I have 10 variables,
------------------------------------------------------------------------------------------------------
[ 1]
2011 Oct 20
2
Calculating differences
I have a table that looks like this:
structure(list(speed = c(3,9,4,8,7,6), C = c(0.697, 0.011, 0.015, 0.012, 0.018, 0.019), house = c(1,
1, 1, 1, 1, 1), date = c(719, 1027, 1027, 1027, 1030, 1030),
hour = c(18, 8, 8, 8, 11, 11), id = c("1000", "10000",
"10001", "10002", "10003", "10004")), .Names = c("speed",
2004 Feb 06
1
problem to get coefficient from lm()
Dear all,
The following is a example that I run and hope to get a linear model.
However, I find the lm() can not give correct coefficients for the
linear model.
I hope it's just my own mistake. Please help. TIA.
Regards,
Jinsong
> x
[1] 3.760216 3.997288 3.208872 3.985417 3.265704 3.497505 2.923540
3.193937
[9] 3.102787 3.419574 3.169374 2.928510 3.153821 3.100385 3.768770
3.610583
2007 Jun 13
2
Formatted Data File Question for Clustering -Quickie Project
I am trying to learn how to format Ascii data files for scan or read
into R.
Precisely for a quickie project, I found some code (at end of this
email) to do exactly what I need:
To cluster and graph a dendrogram from package (stats).
I am stuck on how to format a text file to run the script.
I looked at the dataset USArrests (which would be replaced by my data
and labels) using UltraEdit. That
2010 Jul 06
1
acf
Hi list,
I have the following code to compute the acf of a time series
acfresid <- acf(residfit), where residfit is the series
when I type acfresid at the prompt the follwoing is displayed
Autocorrelations of series ?residfit?, by lag
0.0000 0.0833 0.1667 0.2500 0.3333 0.4167 0.5000 0.5833 0.6667 0.7500 0.8333
1.000 -0.015 0.010 0.099 0.048 -0.014 -0.039 -0.019 0.040 0.018
2003 May 08
1
function to compute entropy
Maybe its slightly off-topic, but can anybody
help with computing entropy on matrix of probabilities?
Guess we have a matrix of probabilites, A, 2x2, something
like this:
z
x 0 1 2 3 4
0 0.063 0.018 0.019 0.016 0.000
1 0.011 0.162 0.040 0.042 0.003
2 0.015 0.030 0.164 0.033 0.002
3 0.012 0.035 0.036 0.159 0.002
4 0.004 0.021 0.018 0.013 0.082
sum(A)=1
Can i
2007 Dec 19
1
strange timings in convolve(x,y,type="open")
Dear R-ophiles,
I've found something very odd when I apply convolve
to ever larger vectors. Here is an example below
with vectors ranging from 2^11 to 2^17. There is
a funny bump up at 2^12. Then it gets very slow at 2^16.
> for( i in 11:20 )print( system.time(convolve(1:2^i,1:2^i,type="o")))
user system elapsed
0.002 0.000 0.002
user system elapsed
0.373
2005 Dec 14
4
unable to force the vector format
Dear all,
I am so ashamed to pollute the list with a trivial question, but it is a
long time I have not used R, and I need a result in the next one or two
hour...
I have a table which I have loaded with read.table, and I want to make
the mean of its columns.
> slides <- read.table("slides.txt")
> slides [1:5,]
V1 V2 V3 V4 V5 V6 V7 V8
1
2010 Feb 04
2
help needed using t.test with factors
I am trying to use t.test on the following data:
date type INTERVAL nCASES MTF SDF MTO SDO
nFST MF nOBS MO MB BIASCV BIASEV ME MAE
RMSE CRCF
2001-06-15 avn GE1.00 4385 0.246 0.300 1.502
0.556 1367 1.373 4385 1.502 1.471 0.285 0.164
-1.256 1.266 1.399 0.056
2001-06-15 avn
2006 Jun 25
1
Puzzled with contour()
Folks,
The contour() function wants x and y to be in increasing order. I have
a situation where I have a grid in x and y, and associated z values,
which looks like this:
x y z
[1,] 0.00 20 1.000
[2,] 0.00 30 1.000
[3,] 0.00 40 1.000
[4,] 0.00 50 1.000
[5,] 0.00 60 1.000
[6,] 0.00 70 1.000
[7,] 0.00 80 0.000
[8,] 0.00 90