python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Predicted values of a poisson in R
I'm trying to find the predicted values of car accidents according to age and sex and finally adjusted to population.
My data is (df):
df <- dplyr::tibble(
city = c("a", "a", ...
Amc
Votes: 0
Answers: 1
predicting values using a dataframe and model.predict()
I have this simple dataframe:
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
d = {'x': [7,8, 10,15], 'y'...
Kingsley Obeng
Votes: 0
Answers: 1
Confidence intervals from mocel coefficients vs whole model
I'm trying to demonstrate that there is an important difference between two ways of making linear model predictions. The first way, which my heart tells me is more correct, uses predict.lm which as I ...
AndrewMacDonald
Votes: 0
Answers: 1
Linear regression prediction using interaction terms in R
I am trying to code a model which uses interaction term and generate out-of-sample predictions using the model.
My training sample has 3 variables and 11 rows.
My test sample has 3 variables and 1 row...
Jh00ni
Votes: 0
Answers: 1