Questions tagged [predict]

Prediction of values based on model objects.

Predictive models are statistical or algorithmic models for use in prediction tasks. These tend to arise in data-intensive contexts, hence there is a strong association with statistics and machine learning.

Tag Usage

Questions on tag should be about implementation and programming problems, not about the statistical or theoretical properties of the technique. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

1574 questions
0
votes
1 answer

Pad fitted values of PLM model with NAs

I have the following dataset seed(1) dt <- data.frame(name= rep(c("A", "B", "C"), c(9,11,10)), year=c(2001:2009,2000,2002:2011,2001:2010), var1=c(NA,rnorm(10),NA,rnorm(18)), …
Mace
  • 1,259
  • 4
  • 16
  • 35
0
votes
2 answers

Saving an output from R into excel format?

After running the predict function for glm i get an output in the below format: 1 2 3 4 5 6 7 8 9 10 11 12 3.954947e-01…
user3379326
  • 1
  • 1
  • 1
0
votes
1 answer

How to change query into fetch result in coredata(magical record)?

i want fetch request for below query select name,count(1) from tablename groupedby name; i tried to add grouped by fetch controller not succeed how to do that
0
votes
2 answers

Pressure-diameter data prediction

I have sets of Pressure-Diameter data (Pressure=X, Diameter=Y) measured by increasing the pressure of a cannulated artery in step increments from 5 to 55 and then decreasing the pressure in step increments from 55 back to 5. For now I am using a…
Shawna
  • 69
  • 1
  • 4
0
votes
1 answer

Making prediction from a time series?

I would like to create a prediction model from a time series. I have a data frame which include 2 column (Date and Cases). Date column is going from 2008-01-01 to 2013-12-01. Cases has some number for each month (However, more than 30 out of 72…
Ram
  • 359
  • 1
  • 6
  • 15
0
votes
0 answers

Predict value in MATLAB and Excel is not equal

TrainInput = [0 0; 0 1; 1 0; 1 1]'; TrainTarget = [0; 1; 1; 0]'; net = newff(TrainInput, TrainTarget, 2, {'tansig' 'purelin'}); net.divideFcn = ''; net.trainParam.lr = 0.01; net = init(net); %# init …
0
votes
1 answer

LinearRegression Predict- ValueError: matrices are not aligned

I've been searching google and can't figure out what I'm doing wrong. I'm pretty new to python and trying to use scikit on stocks but I'm getting the error "ValueError: matrices are not aligned" when trying to predict. import datetime import numpy…
micah
  • 7,596
  • 10
  • 49
  • 90
0
votes
1 answer

creation of a variable in a R dataset based on two vectors

I have made a polynomial model from 2 vectors: tint <- c(12, 18.8, 25.5, 21.6) text <- c(11.4, 17.1, 22.1, 14.0) dT <- tint - text func.dT2 <- lm(dT[1:3] ~ poly(text[1:3],2,raw=TRUE) ) now, i'd like to use that model to predict dT from other…
Alex Caseiro
  • 403
  • 1
  • 4
  • 9
0
votes
1 answer

Google prediction api, Having the output as a list that have a variable size

I want to train a model that will allow me to generat a LIST of tag related to certain text, my output list will have variable size depending in the context. In the examples that i found, the model return always one output. I am wondering if the…
0
votes
1 answer

Match lists for use with PREDICT: list of lm() objects and list of data

I have 18 dates (e.g. unique DAY, MONTH, YEAR) and 10 variables. I have a lm model (y = mx + b, where y = value and x = pLength) for each date and variable (180 models). These are stored in a list (i.e. models). I want to use these models to…
nofunsally
  • 2,051
  • 6
  • 35
  • 53
0
votes
2 answers

Predict function on a Regression model giving error

I am trying to predict the predict values of y variable based on my polynomial model. lumber.predict.plm=lm(lumber.unemployment.women$lumber.1980.2000 ~ scale(lumber.unemployment.women$woman.1980.2000) + …
Rajat Panda
  • 129
  • 1
  • 3
  • 14
0
votes
0 answers

binomial glm error bars

I am trying to derive error bars for my data, which is proportional(Dead/Alive) and analysed with a binomial GLM. So far I have tried using the predict() function in R but in the treatment groups where there is either no deaths or 100% deaths the…
user29689
  • 15
  • 2
0
votes
0 answers

predict.glm(): How to predict missing factor levels using other continuous variables

I'm using the predict function in raster library to predict my glm model over set of raster stack predictors. Some of the factor levels were missing in my model, so I turned those layers to NA in order to run the predict function. Now my output map…
Geo-sp
  • 1,704
  • 3
  • 19
  • 42
0
votes
1 answer

How to check Polynomial Regression result in RapidMiner?

I use RapidMiner and i have a data set which contains 40 lines, each line has 14 column. Lines are different kinds of metrics of Android applications + and the end of the line there is google-play ranking (first line is the header which contains the…
olhptr
  • 67
  • 1
  • 9
0
votes
1 answer

predict values for glm model build without the case itself

I'd like to predict values using a generated model. That is the simple part: predicted = fitted.values(glm(dep ~ indep, family = myFamily, maxit = myMaxit) But: for each case I don't want to use that case for building that model (without using a…
Hoffmann
  • 1,050
  • 9
  • 26
1 2 3
99
100