[R] How to use R to perform prediction based on history data
daniel at umd.edu
Sat Aug 15 17:25:30 CEST 2009
Please have a look at the posting guide. For your problem of loading the
data, we do not know what you have done and, therefore, cannot even try to
guess what the reason for the error message may be. So at least we need
information what you did in R (the code). Second, the posting guide
generally requires to provide minimally self-contained code. In other words,
an example that we just have to copy in the R prompt that reproduces your
problem. Often the attempt to create such an example makes you find the
source of the error yourself.
As for the modeling question, yes, R allows you to predict for many
estimated models. However, this is "dangerous" if you are new to statistics
and don't really know what you are doing. You should ask your/a local
statistician/econometrician to help you with modeling your data. Everything
we could do from a distance is vague, especially given the vague description
of your data.
cuncta stricte discussurus
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von Jack Su
Gesendet: Friday, August 14, 2009 10:28 PM
An: r-help at r-project.org
Betreff: [R] How to use R to perform prediction based on history data
Say I have a csv file, each row contains several fields, one of them are
whether the row is success.
In history data, I have all the fields including the result of whether it is
success. In future data, I only have fields without the result.
Field1 Field2 Field3 Field4 ResultField
1231 CA TRUE 443 TRUE
23231 NC TRUE 123 FALSE
1231 CA FALSE 243 TRUE
The future data:
Field1 Field2 Field3 Field4
23231 NC TRUE 123
I am newbie in R and statistics, I just feel R could have some mechanism to
give the probably of success rate based on history data.
I tried to read in the csv data, and try to call "factor" on the list, but I
am seeing error message:
Error in sort.list(unique.default(x), na.last = TRUE) :
Any idea are highly welcome.
Thanks in advance.
R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
More information about the R-help